diff --git a/.github/workflows/update-flake-inputs.yml b/.github/workflows/update-flake-inputs.yml new file mode 100644 index 0000000..7ad589e --- /dev/null +++ b/.github/workflows/update-flake-inputs.yml @@ -0,0 +1,29 @@ +name: Update Flake Inputs +on: + schedule: + - cron: "0 2 * * 0" + workflow_dispatch: +jobs: + update-flake-inputs: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Generate GitHub App Token + id: app-token + uses: actions/create-github-app-token@v2 + with: + app-id: ${{ vars.CI_APP_ID }} + private-key: ${{ secrets.CI_APP_PRIVATE_KEY }} + - name: Checkout repository + uses: actions/checkout@v5 + with: + token: ${{ steps.app-token.outputs.token }} + - name: Setup Nix + uses: cachix/install-nix-action@v31 + - name: Update flake inputs + uses: mic92/update-flake-inputs@main + with: + github-token: ${{ steps.app-token.outputs.token }} + auto-merge: true diff --git a/.github/workflows/update-flake-lock.yml b/.github/workflows/update-flake-lock.yml deleted file mode 100644 index 8eb052d..0000000 --- a/.github/workflows/update-flake-lock.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: update-flake-lock -on: - workflow_dispatch: # allows manual triggering - schedule: - - cron: "0 0 * * 1,4" # Run twice a week -permissions: - pull-requests: write - contents: write -jobs: - lockfile: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v5 - - name: Install Nix - uses: cachix/install-nix-action@v31 - with: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/create-github-app-token@v2 - id: app-token - with: - app-id: ${{ vars.CI_APP_ID }} - private-key: ${{ secrets.CI_APP_PRIVATE_KEY }} - - name: Update flake.lock - uses: DeterminateSystems/update-flake-lock@v27 - with: - token: ${{ steps.app-token.outputs.token }} - pr-body: | - Automated changes by the update-flake-lock - ``` - {{ env.GIT_COMMIT_MESSAGE }} - ``` - pr-labels: | # Labels to be set on the PR - auto-merge