-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a workflow to propose new releases (#1449)
* Create a propose-release workflow, and run the release-tags workflow on release * update release docs * Apply suggestions from code review * Update the release process notes * Update CONTRIBUTING.md
- Loading branch information
Showing
4 changed files
with
65 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
reference-id: | ||
type: string | ||
required: true | ||
version: | ||
type: string | ||
required: true | ||
nix-version: | ||
type: string | ||
required: true | ||
|
||
concurrency: | ||
group: ${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
propose-release: | ||
uses: DeterminateSystems/propose-release/.github/workflows/workflow.yml@main | ||
permissions: | ||
id-token: "write" | ||
contents: "write" | ||
pull-requests: write | ||
with: | ||
reference-id: ${{ inputs.reference-id }} | ||
version: ${{ inputs.version }} | ||
extra-commands-early: | | ||
for fname in $(find ./tests/fixtures -name '*.json'); do | ||
cat "$fname" \ | ||
| jq '.version = $version' --arg version "$version" \ | ||
> "$fname.next" | ||
mv "$fname.next" "$fname" | ||
git add "$fname" | ||
done | ||
git commit -m "Update test fixtures with the new nix-installer version" || true | ||
sed -i 's#https://flakehub.com/f/DeterminateSystems/nix/=.*";#https://flakehub.com/f/DeterminateSystems/nix/=${{ inputs.nix-version }}";#' ./flake.nix | ||
git add flake.nix | ||
git commit -m "Update Nix release to ${{ inputs.nix-version }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.