Periodic Mirror #6747
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: "Periodic Mirror" | |
| on: | |
| schedule: | |
| - cron: '0 */6 * * *' | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| hourly-mirror: | |
| runs-on: ubuntu-latest | |
| if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
| steps: | |
| - name: Checking out the repository | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Installing Nix | |
| uses: DeterminateSystems/nix-installer-action@main | |
| - name: Enable magic Nix cache | |
| uses: DeterminateSystems/magic-nix-cache-action@main | |
| - name: Update config | |
| run: ./mirror.sh | |
| - name: Commit the files | |
| uses: stefanzweifel/git-auto-commit-action@v4 | |
| with: | |
| commit_message: 'Update the configuration mirror.' | |
| branch: 'main' | |
| file_pattern: "config/*" | |
| commit_user_name: bot | |
| commit_user_email: [email protected] | |
| commit_author: bot <[email protected]> | |
| if: github.repository == 'DeterminateSystems/hydra-nixos-org-configuration' | |
| continue-on-error: true | |