Skip to content

Commit

Permalink
REMOVE trigger on push
Browse files Browse the repository at this point in the history
  • Loading branch information
avdv committed Sep 11, 2024
1 parent 9503226 commit deb49e7
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/prepare-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: Prepare Release

on:
push:
workflow_dispatch:
inputs:
version:
Expand All @@ -19,8 +20,8 @@ jobs:
steps:
- name: Check version
run: |
if ! [[ '${{ inputs.version }}' =~ ^[0-9]+[.][0-9]+([.][0-9]+)?$ ]]; then
echo '${{ inputs.version }} does not match expected format `major.minor.patch?`' >&2
if ! [[ '${{ '0.20' }}' =~ ^[0-9]+[.][0-9]+([.][0-9]+)?$ ]]; then
echo '${{ '0.20' }} does not match expected format `major.minor.patch?`' >&2
exit 1
fi
- name: Checkout
Expand All @@ -32,10 +33,10 @@ jobs:
uses: sean0x42/markdown-extract@v2
with:
file: CHANGELOG.md
pattern: ${{ inputs.version }}
pattern: ${{ '0.20' }}
- name: Prepare release notes and artifacts
run: |
.github/workflows/release_prep.sh v${{ inputs.version }} > release_notes.txt
.github/workflows/release_prep.sh v${{ '0.20' }} > release_notes.txt
printf '${{ steps.extract-changelog.outputs.markdown }}' >> release_notes.txt
- name: Create draft release
env:
Expand All @@ -44,6 +45,6 @@ jobs:
gh release create \
--draft \
--notes-file release_notes.txt \
--title v${{ inputs.version }} \
v${{ inputs.version }} \
rules_nixpkgs-${{ inputs.version }}.tar.gz
--title v${{ '0.20' }} \
v${{ '0.20' }} \
rules_nixpkgs-${{ '0.20' }}.tar.gz

0 comments on commit deb49e7

Please sign in to comment.