From 59cf9786a7c1bfca045e5657cde69e9f7a016d34 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Thu, 25 Apr 2024 16:55:13 +0900 Subject: [PATCH] Update selfup v1.x (#495) * 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 --- .github/workflows/ci-elm.yml | 4 ++-- .github/workflows/ci-js.yml | 6 +++--- .github/workflows/firebase-hosting-merge.yml | 2 +- .github/workflows/firebase-hosting-pull-request.yml | 2 +- .github/workflows/lint.yml | 4 ++-- .github/workflows/update-flake-lock-and-ci.yml | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci-elm.yml b/.github/workflows/ci-elm.yml index 4f93649..690f8de 100644 --- a/.github/workflows/ci-elm.yml +++ b/.github/workflows/ci-elm.yml @@ -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 @@ -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 diff --git a/.github/workflows/ci-js.yml b/.github/workflows/ci-js.yml index f1b906c..e420a7b 100644 --- a/.github/workflows/ci-js.yml +++ b/.github/workflows/ci-js.yml @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 9303ae9..cb1a1ff 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -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 diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 41d18d3..444f52d 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0c45ba7..4314ca7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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: | diff --git a/.github/workflows/update-flake-lock-and-ci.yml b/.github/workflows/update-flake-lock-and-ci.yml index 6eff5ef..6a2faaf 100644 --- a/.github/workflows/update-flake-lock-and-ci.yml +++ b/.github/workflows/update-flake-lock-and-ci.yml @@ -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'