Update Channel Info #96772
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: "Update Channel Info" | |
on: | |
schedule: | |
- cron: '*/10 * * * *' | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Configure Git | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
- name: fetch from cache | |
uses: actions/cache@v4 | |
with: | |
path: updater.bundle | |
key: ${{ runner.os }}-bundle-${{ hashFiles('**/flake.lock') }}-${{ hashFiles('**/*.nix') }}-${{ hashFiles('**/*.nim*') }} | |
- name: update JSON | |
run: ./updater.bundle -d:$PWD | |
- name: create commit | |
run: git commit -a -m "update sources.json" || true | |
- name: Push commit with updated inputs | |
run: | | |
git pull --rebase --autostash | |
git push |