summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Smith <jack.smith@algorand.com>2022-08-03 15:44:29 +0100
committerJack Smith <jack.smith@algorand.com>2022-08-03 15:44:29 +0100
commit9e3092f2010fcd06b6188c54a47dacb7567c3538 (patch)
treed6b2551176904eb9e6f3ca70580c526c029a6ba5
parent5f62166c7751bc41a40b98fb8f9cdec7535fed79 (diff)
Adding docs repo triggerrelease-docs-update-trigger
-rw-r--r--.github/workflows/post-release.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/post-release.yml b/.github/workflows/post-release.yml
new file mode 100644
index 000000000..b1c1cdd9b
--- /dev/null
+++ b/.github/workflows/post-release.yml
@@ -0,0 +1,27 @@
+name: Post Release Actions
+on:
+ release:
+ type: [published]
+ push: # for testing
+
+jobs:
+ update-docs-repo:
+ runs-on: ubuntu-latest
+ name: Update Docs repo
+ steps:
+ - name: Trigger Docs repo docs-generator action
+ if: contains(github.event.properties.tag_name, '-stable')
+ run: |
+ FORMATTED_RELEASE_VERSION=$(echo "${{ github.event.properties.tag_name }}" | sed 's/v//' | sed 's/-stable//')
+ wget \
+ --post-data '{"ref":"staging", "go_aglorand_version":"$FORMATTED_RELEASE_VERSION"}' \
+ --header "Accept: application/vnd.github+json" \
+ --header "Authorization: token ${{ secrets.ALGO_DEV_PUB_REP_TOKEN }}" \
+ https://api.github.com/repos/algorand/docs/actions/workflows/docs-generator.yml/dispatches
+ - name: Trigger Docs repo version-updater action
+ run: |
+ wget \
+ --post-data '{"ref":"staging", "go_aglorand_version":"${{ github.event.properties.tag_name }}"}' \
+ --header "Accept: application/vnd.github+json" \
+ --header "Authorization: token ${{ secrets.ALGO_DEV_PUB_REP_TOKEN }}" \
+ https://api.github.com/repos/algorand/docs/actions/workflows/version-updater.yml/dispatches