diff options
| author | Seth Flynn <[email protected]> | 2025-03-12 01:18:35 -0400 |
|---|---|---|
| committer | Seth Flynn <[email protected]> | 2025-03-12 20:26:38 -0400 |
| commit | 6cf2d778397d8e21d9100589f35fb402fa9beb56 (patch) | |
| tree | b3287c2e5418446b22488041af44dc9ddc81c519 /.github/workflows | |
| parent | fa4eb3a1ab14173cf27be23c0fde71a4c73f974c (diff) | |
nix: flake.nix -> shell.nix
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/eslint.yaml | 13 | ||||
| -rw-r--r-- | .github/workflows/update-flake.yaml | 49 |
2 files changed, 8 insertions, 54 deletions
diff --git a/.github/workflows/eslint.yaml b/.github/workflows/eslint.yaml index aee65e8..3dc7d56 100644 --- a/.github/workflows/eslint.yaml +++ b/.github/workflows/eslint.yaml @@ -47,18 +47,21 @@ jobs: uses: actions/checkout@v4 - name: Install Nix - uses: DeterminateSystems/nix-installer-action@v14 + uses: cachix/install-nix-action@v31 + with: + nix_path: nixpkgs=channel:nixos-unstable - name: Install Dependencies - run: nix develop .#ci --command pnpm install --frozen-lockfile + run: | + nix-shell ci-shell.nix --command 'pnpm install --frozen-lockfile' - name: Run ESLint continue-on-error: true run: | - nix develop .#ci --command \ - nrr lint \ + nix-shell ci-shell.nix --command \ + 'nrr lint \ --format @microsoft/eslint-formatter-sarif \ - --output-file /tmp/results.sarif + --output-file /tmp/results.sarif' - name: Upload Results uses: github/codeql-action/upload-sarif@v3 diff --git a/.github/workflows/update-flake.yaml b/.github/workflows/update-flake.yaml deleted file mode 100644 index 4473811..0000000 --- a/.github/workflows/update-flake.yaml +++ /dev/null @@ -1,49 +0,0 @@ -name: Update flake.lock - -on: - schedule: - # run every saturday - - cron: "0 0 * * 6" - workflow_dispatch: - -jobs: - update: - name: Run update & create PR - - runs-on: ubuntu-latest - - steps: - - name: Generate GitHub App token - uses: actions/create-github-app-token@v1 - id: app-token - with: - app-id: ${{ vars.APP_ID }} - private-key: ${{ secrets.PRIVATE_KEY }} - - - name: Checkout repository - uses: actions/checkout@v4 - with: - token: ${{ steps.app-token.outputs.token }} - - - name: Install Nix - uses: DeterminateSystems/nix-installer-action@v14 - - - name: Run update - run: nix flake update - - - name: Create pull request - id: pull-request - uses: peter-evans/create-pull-request@v7 - with: - branch: update-flake-lock - commit-message: "nix: update flake.lock" - title: "nix: update flake.lock" - token: ${{ steps.app-token.outputs.token }} - sign-commits: true - - - name: Enable auto-merge - if: ${{ env.PR_ID != '' }} - run: gh pr merge --auto --squash "$PR_ID" - env: - PR_ID: ${{ steps.pull-request.outputs.pull-request-number }} - GH_TOKEN: ${{ steps.app-token.outputs.token }} |
