Sync all github releases with erlang.org #34331
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync all github releases with erlang.org | |
## Sync all github releases every hour | |
on: | |
workflow_dispatch: | |
schedule: | |
## In UTC | |
- cron: '0 * * * *' | |
## Needed to create releases | |
permissions: | |
contents: write | |
## Build base images to be used by other github workflows | |
jobs: | |
sync-releases: | |
if: github.repository == 'erlang/otp' | |
concurrency: sync-github-releases | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
## We need to login to the package registry in order to pull | |
## the base debian image. | |
- name: Docker login | |
run: docker login https://ghcr.io -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 |