From bdbb8bd1012942d55e5322e16dce2912f79a0b9c Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 27 May 2023 18:36:55 -0400 Subject: actions: use composite action for updating inputs --- .github/workflows/update-inputs.yaml | 16 +++------------- .github/workflows/update-nixpkgs.yaml | 16 +++------------- 2 files changed, 6 insertions(+), 26 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/update-inputs.yaml b/.github/workflows/update-inputs.yaml index 8dc66c4..59fed45 100644 --- a/.github/workflows/update-inputs.yaml +++ b/.github/workflows/update-inputs.yaml @@ -16,19 +16,9 @@ jobs: - name: checkout repo uses: actions/checkout@v3 - - name: install nix - uses: cachix/install-nix-action@v20 - with: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - - name: update all inputs - uses: DeterminateSystems/update-flake-lock@v19 + uses: ./.github/actions/flake-update with: commit-msg: "flake: update all inputs" - pr-title: "flake: update all inputs" - pr-body: | - Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action. - - bors r+ - nix-options: "--accept-flake-config" - token: ${{ secrets.FLAKE_UPDATE }} + github-token: ${{ secrets.GITHUB_TOKEN }} + update-token: ${{ secrets.FLAKE_UPDATE }} diff --git a/.github/workflows/update-nixpkgs.yaml b/.github/workflows/update-nixpkgs.yaml index e78d41b..ccb04d3 100644 --- a/.github/workflows/update-nixpkgs.yaml +++ b/.github/workflows/update-nixpkgs.yaml @@ -16,20 +16,10 @@ jobs: - name: checkout repo uses: actions/checkout@v3 - - name: install nix - uses: cachix/install-nix-action@v20 - with: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - - name: update nixpkgs inputs - uses: DeterminateSystems/update-flake-lock@v19 + uses: ./.github/actions/flake-update with: inputs: nixpkgs nixpkgs-stable commit-msg: "flake: update nixpkgs inputs" - pr-title: "flake: update nixpkgs inputs" - pr-body: | - Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action. - - bors r+ - nix-options: "--accept-flake-config" - token: ${{ secrets.FLAKE_UPDATE }} + github-token: ${{ secrets.GITHUB_TOKEN }} + update-token: ${{ secrets.FLAKE_UPDATE }} -- cgit v1.2.3