Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
Update selfup v1.x (#495)
Browse files Browse the repository at this point in the history
* Update selfup action to v1.x era

* `git ls-files .github | xargs nix run github:kachick/selfup/v1.1.2 -- migrate`

* Manually update use of selfup

* `git ls-files .github | xargs nix run github:kachick/selfup/v1.1.2 -- migrate`

* Manually update use of selfup

* Same as in deno
  • Loading branch information
kachick authored Apr 25, 2024
1 parent 5d92452 commit 59cf978
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-elm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.12.2' # selfup { "regex": "\\d[^']+", "script": "node --version | tr -d v" }
node-version: '20.12.2' # selfup {"extract":"\\d[^']+","replacer":["bash","-c","node --version | tr -d v"]}
cache: npm
- name: Install npm dependencies
run: npm ci --ignore-scripts
Expand All @@ -40,7 +40,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.12.2' # selfup { "regex": "\\d[^']+", "script": "node --version | tr -d v" }
node-version: '20.12.2' # selfup {"extract":"\\d[^']+","replacer":["bash","-c","node --version | tr -d v"]}
cache: npm
- name: Install npm dependencies
run: npm ci --ignore-scripts
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.12.2' # selfup { "regex": "\\d[^']+", "script": "node --version | tr -d v" }
node-version: '20.12.2' # selfup {"extract":"\\d[^']+","replacer":["bash","-c","node --version | tr -d v"]}
cache: npm
- name: Install npm dependencies
run: npm ci --ignore-scripts
Expand All @@ -38,7 +38,7 @@ jobs:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: '1.42.3' # selfup { "regex": "\\d[^']+", "script": "deno --version | head -n 1 | cut -d ' ' -f 2" }
deno-version: '1.42.3' # selfup {"extract":"\\d[^']+","replacer":["bash","-c","deno --version | head -n 1"], "nth": 2}
- run: deno lint
stylelint:
timeout-minutes: 15
Expand All @@ -47,7 +47,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.12.2' # selfup { "regex": "\\d[^']+", "script": "node --version | tr -d v" }
node-version: '20.12.2' # selfup {"extract":"\\d[^']+","replacer":["bash","-c","node --version | tr -d v"]}
cache: npm
- name: Install npm dependencies
run: npm ci --ignore-scripts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.12.2' # selfup { "regex": "\\d[^']+", "script": "node --version | tr -d v" }
node-version: '20.12.2' # selfup {"extract":"\\d[^']+","replacer":["bash","-c","node --version | tr -d v"]}
cache: npm
- name: Install npm dependencies
run: npm ci --ignore-scripts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.12.2' # selfup { "regex": "\\d[^']+", "script": "node --version | tr -d v" }
node-version: '20.12.2' # selfup {"extract":"\\d[^']+","replacer":["bash","-c","node --version | tr -d v"]}
cache: npm
- name: Install npm dependencies
run: npm ci --ignore-scripts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
- uses: actions/checkout@v4
- uses: dprint/check@v2.2
with:
dprint-version: '0.45.0' # selfup { "regex": "\\d[^']+", "script": "dprint --version | cut -d ' ' -f 2" }
dprint-version: '0.45.0' # selfup { "extract": "\\d[^']+", "replacer": ["dprint", "--version"], "nth": 2 }

typos:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@v1.20.9 # selfup { "regex": "\\d\\.\\d+\\.\\d+", "script": "typos --version | cut -d ' ' -f 2" }
- uses: crate-ci/typos@v1.20.9 # selfup { "extract": "\\d\\.\\d+\\.\\d+", "replacer": ["typos", "--version"], "nth": 2 }
with:
# https://github.com/crate-ci/typos/issues/779#issuecomment-1635741586
files: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-flake-lock-and-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
update-nixpkgs:
uses: kachick/selfup/.github/workflows/reusable-bump-flake-lock-and-selfup.yml@action-v1
uses: kachick/selfup/.github/workflows/reusable-bump-flake-lock-and-selfup.yml@v1.1.2
with:
dry-run: ${{ github.event_name == 'pull_request' }}
pr-title: 'Bump flake.lock and related dependencies'
Expand Down

0 comments on commit 59cf978

Please sign in to comment.