-
Notifications
You must be signed in to change notification settings - Fork 3k
36 lines (32 loc) · 1.09 KB
/
sync-github-releases.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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: read
## 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
permissions:
## Needed to create releases
contents: write
actions: write
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # ratchet: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