Update from upstream #137
This file contains hidden or 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 from upstream | |
| on: | |
| workflow_dispatch: {} | |
| schedule: | |
| - cron: '0 3 * * 0' | |
| jobs: | |
| update: | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: cachix/install-nix-action@master | |
| with: | |
| nix_path: nixpkgs=channel:nixos-unstable | |
| - run: | | |
| git config user.name github-actions | |
| git config user.email [email protected] | |
| ./update-from-upstream.sh | |
| changes=$(git status --short .) | |
| if [ -n "$changes" ]; then | |
| git add . | |
| export REV=$(nix-shell -p jq --run "cat nix/asterix-libs.json | jq -r '.rev'") | |
| git commit -m "Periodic sync with asterix-libs #$REV" | |
| git push | |
| fi |