summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-27 18:36:55 -0400
committerseth <[email protected]>2023-05-27 18:36:55 -0400
commitbdbb8bd1012942d55e5322e16dce2912f79a0b9c (patch)
treead2415a30470d391bd1d035deacd29732bc5d8d2 /.github/workflows
parent9c4eefcf057a680debbe05cef4fcd647bdf937f2 (diff)
actions: use composite action for updating inputs
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/update-inputs.yaml16
-rw-r--r--.github/workflows/update-nixpkgs.yaml16
2 files changed, 6 insertions, 26 deletions
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 }}