Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0209-gh-Rebuild-erlang.org-after-artifacts-have...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0209-gh-Rebuild-erlang.org-after-artifacts-have-been-sync.patch of Package erlang
From 2a638b492c783b5a5dcd534ef83d5d78abd4ae71 Mon Sep 17 00:00:00 2001 From: Lukas Larsson <lukas@erlang.org> Date: Tue, 23 Nov 2021 08:56:58 +0100 Subject: [PATCH] gh: Rebuild erlang.org after artifacts have been synced --- .github/scripts/sync-github-releases.sh | 5 +++++ .github/workflows/sync-github-releases.yaml | 2 ++ 2 files changed, 7 insertions(+) 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 -- 2.31.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor