summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorLukas Larsson <lukas@erlang.org>2021-11-23 08:58:16 +0100
committerLukas Larsson <lukas@erlang.org>2021-11-23 08:58:16 +0100
commit4b5aa64a1a2f3abce7fccf04d7ab7c537d343373 (patch)
treeef9e50be06979a2f6f457c9f0b6a82e5a4662759 /.github
parent98ee1d4ad757adc10c9be006fc70e45accd9953c (diff)
parent2a638b492c783b5a5dcd534ef83d5d78abd4ae71 (diff)
downloaderlang-4b5aa64a1a2f3abce7fccf04d7ab7c537d343373.tar.gz
Merge branch 'lukas/gh/erlang-org-rebuild-after-sync'
* lukas/gh/erlang-org-rebuild-after-sync: gh: Rebuild erlang.org after artifacts have been synced
Diffstat (limited to '.github')
-rwxr-xr-x.github/scripts/sync-github-releases.sh5
-rw-r--r--.github/workflows/sync-github-releases.yaml2
2 files changed, 7 insertions, 0 deletions
diff --git a/.github/scripts/sync-github-releases.sh b/.github/scripts/sync-github-releases.sh
index 763762234f..0cb2042f01 100755
--- a/.github/scripts/sync-github-releases.sh
+++ b/.github/scripts/sync-github-releases.sh
@@ -205,6 +205,11 @@ for name in "${ALL_TAGS[@]}"; do
_upload_artifacts ${name}
done
+## Rebuild erlang.org to get links to the new artifacts
+if [ ${UPLOADED} = true ]; then
+ curl -H "Authorization: token ${ERLANG_ORG_TOKEN}" -X POST -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/erlang/erlang-org/actions/workflows/update-gh-cache.yaml/dispatches" -d '{"ref":"master"}'
+fi
+
## If no assets were uploaded, we try to build one instead
if [ ${UPLOADED} = false ] && [ ${#MISSING_PREBUILD[0]} != 0 ]; then
name="${MISSING_PREBUILD[0]}"
diff --git a/.github/workflows/sync-github-releases.yaml b/.github/workflows/sync-github-releases.yaml
index d3d3cf901c..b69b6d5cdc 100644
--- a/.github/workflows/sync-github-releases.yaml
+++ b/.github/workflows/sync-github-releases.yaml
@@ -34,6 +34,8 @@ jobs:
- name: Docker login
run: docker login https://docker.pkg.github.com -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
- name: Sync releases
+ env:
+ ERLANG_ORG_TOKEN: ${{ secrets.TRIGGER_ERLANG_ORG_BUILD }}
run: >
.github/scripts/sync-github-releases.sh ${{ github.repository }}
"Bearer ${{ secrets.GITHUB_TOKEN }}" "^[2-9][1-9]\\..*" 25m