Skip to content

Commit 7b50306

Browse files
committed
Add self-updating workflow
Signed-off-by: Andrea Mazzotti <[email protected]>
1 parent da68565 commit 7b50306

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Populate Channels
2+
on:
3+
schedule:
4+
- cron: '*/1 * * * *'
5+
6+
env:
7+
REGISTRY: ghcr.io
8+
IMAGE_NAME: ${{ github.repository }}
9+
10+
jobs:
11+
publish-channel:
12+
permissions:
13+
contents: write
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
with:
19+
ref: 'main'
20+
fetch-depth: 0
21+
- name: Run populate script
22+
run: ./populate_channels.sh
23+
- name: Commit and push changes
24+
run: |
25+
git add .
26+
git commit -m "Automatic update. Run ID ${{ github.run_id }}, Number ${{ github.run_number}}, Attempt ${{ github.run_attempt }}"
27+
git push origin

0 commit comments

Comments
 (0)