diff --git a/.github/workflows/reusable-bump-flake-lock-and-selfup.yml b/.github/workflows/reusable-bump-flake-lock-and-selfup.yml index 03739ee..e1e6564 100644 --- a/.github/workflows/reusable-bump-flake-lock-and-selfup.yml +++ b/.github/workflows/reusable-bump-flake-lock-and-selfup.yml @@ -16,9 +16,13 @@ on: default: 'Bump flake.lock and related dependencies' required: false type: string + version: + default: 'v1.2.0' + required: false + type: string pr-body: default: | - This PR has been created by https://github.com/kachick/selfup/blob/action-v1/.github/workflows/reusable-bump-flake-lock-and-selfup.yml + This PR has been created by https://github.com/kachick/selfup/blob/${{ inputs.version }}/.github/workflows/reusable-bump-flake-lock-and-selfup.yml Do NOT update the branch of this PR, it may be updated by the bot with force push. required: false @@ -79,7 +83,7 @@ jobs: run: nix flake update --commit-lock-file - name: Update related CI dependencies run: | - git ls-files .github | xargs nix develop --command nix run github:kachick/selfup/v1.1.1 -- run + git ls-files .github | xargs nix develop --command nix run github:kachick/selfup/${{ inputs.version }} -- run git diff-index --quiet HEAD || git commit -m '${{ inputs.selfup-commit-message }}' .github - name: Run optional step if given if: inputs.optional-run != '' diff --git a/README.md b/README.md index ac37899..9ec3883 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Replace strings if the line contains the definition of how to update itself. In [Nix](https://nixos.org/) [Flake](https://nixos.wiki/wiki/Flakes), you can skip installation steps ```console -> nix run github:kachick/selfup/v1.1.1 -- --version +> nix run github:kachick/selfup/v1.2.0 -- --version selfup dev (rev) ``` @@ -18,7 +18,7 @@ Prebuilt binaries are available for download from [releases](https://github.com/ ```console > install_path="$(mktemp -d)" -> curl -L https://github.com/kachick/selfup/releases/download/v1.1.1/selfup_Linux_x86_64.tar.gz | tar xvz -C "$install_path" selfup +> curl -L https://github.com/kachick/selfup/releases/download/v1.2.0/selfup_Linux_x86_64.tar.gz | tar xvz -C "$install_path" selfup > "${install_path}/selfup" --version selfup VERSION (REV) ```