Update #6239
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 | |
on: | |
schedule: | |
- cron: '30 */2 * * *' | |
workflow_dispatch: | |
jobs: | |
packages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v23 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Cachix | |
uses: cachix/cachix-action@v12 | |
with: | |
name: accentor | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
skipPush: true | |
- run: nix flake update | |
- run: nix build -L --no-link .#accentor-api | |
- run: nix build -L --no-link .#accentor-api.env | |
- run: nix eval --json ".#accentor-api.outPath" | sed 's/"\(.*\)"/\1/' | cachix push accentor | |
- run: nix eval --json ".#accentor-api.env.outPath" | sed 's/"\(.*\)"/\1/' | cachix push accentor | |
shell: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v23 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Cachix | |
uses: cachix/cachix-action@v12 | |
with: | |
name: accentor | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
skipPush: true | |
- run: nix flake update | |
- run: nix build -L --no-link .#devShells.$(nix eval --impure --expr "builtins.currentSystem").accentor-api | |
- run: nix eval --json ".#devShells.$(nix eval --impure --expr 'builtins.currentSystem').accentor-api.outPath" | sed 's/"\(.*\)"/\1/' | cachix push accentor | |
commit: | |
runs-on: ubuntu-latest | |
needs: [packages, shell] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
- uses: cachix/install-nix-action@v23 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Cachix | |
uses: cachix/cachix-action@v12 | |
with: | |
name: accentor | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
skipPush: true | |
- run: nix flake update | |
- uses: stefanzweifel/[email protected] | |
with: | |
commit_message: "Update flake dependencies" | |
commit_user_name: Accentor Bot | |
commit_user_email: [email protected] | |
commit_author: Accentor Bot <[email protected]> |