Update GH actions

This commit is contained in:
Thiago Kenji Okada
2022-07-07 21:16:10 +01:00
parent 3e7d2ab47d
commit 1c09f64ec4
2 changed files with 7 additions and 19 deletions

View File

@ -10,17 +10,13 @@ jobs:
name: Flake Check (x86_64 only) name: Flake Check (x86_64 only)
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
# Nix Flakes doesn't work on shallow clones # Nix Flakes doesn't work on shallow clones
fetch-depth: 0 fetch-depth: 0
- uses: cachix/install-nix-action@v12 - uses: cachix/install-nix-action@v17
with:
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20201221_9fab14a/install
extra_nix_config: |
experimental-features = nix-command flakes
- name: Retrieve /nix/store archive - name: Retrieve /nix/store archive
uses: actions/cache@v2 uses: actions/cache@v3
id: cache-nix-store id: cache-nix-store
with: with:
path: nix-store.dump path: nix-store.dump

View File

@ -8,15 +8,11 @@ jobs:
name: Update dependencies name: Update dependencies
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
# Nix Flakes doesn't work on shallow clones # Nix Flakes doesn't work on shallow clones
fetch-depth: 0 fetch-depth: 0
- uses: cachix/install-nix-action@v12 - uses: cachix/install-nix-action@v17
with:
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20201221_9fab14a/install
extra_nix_config: |
experimental-features = nix-command flakes
- name: Create PRs for dependencies - name: Create PRs for dependencies
env: env:
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -41,15 +37,11 @@ jobs:
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
git config --global init.defaultBranch main git config --global init.defaultBranch main
git config --global pull.rebase false git config --global pull.rebase false
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
# Nix Flakes doesn't work on shallow clones # Nix Flakes doesn't work on shallow clones
fetch-depth: 0 fetch-depth: 0
- uses: cachix/install-nix-action@v12 - uses: cachix/install-nix-action@v17
with:
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20201221_9fab14a/install
extra_nix_config: |
experimental-features = nix-command flakes
- name: Run test_dep_update - name: Run test_dep_update
env: env:
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}