determinate-nix-action/.github/workflows/propose-release.yml
Graham Christensen fbd616d075 Initial commit
2025-05-14 17:20:48 -04:00

34 lines
966 B
YAML

on:
workflow_dispatch:
inputs:
reference-id:
type: string
required: true
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: |
nix develop -c ./tools/update-state.sh "v$VERSION"
git diff || true
git add tools/state.json
git commit -m "Update the state.json for v$VERSION"
nix develop -c ./tools/generate.sh
git add README.md action.yml
git commit -m "Update README.md and action.yml for v$VERSION"
echo "Checking there is no remaining diff..."
git diff --exit-code