Skip to content

Refresh Channels

Refresh Channels #13

name: Refresh Channels
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
refresh-channels:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: 'main'
fetch-depth: 0
- name: Run refresh script
run: ./refresh_channels.sh
- name: Commit and push changes
run: |
git config --global user.email "do-not-use@elemental.suse.com"
git config --global user.name "GitHub Action Runner"
git add .
git diff-index --quiet HEAD || git commit -m "Automatic update. Run ID ${{ github.run_id }}, Number ${{ github.run_number}}, Attempt ${{ github.run_attempt }}"
git push origin