Skip to content

Commit

Permalink
break early in gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cars10 committed Sep 18, 2024
1 parent 0e81ff8 commit d6bd860
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@ jobs:

- uses: actions/checkout@v4

- name: Extract changelog for latest version - just for testing, so the pipeline fails earily if it breaks
id: changelog
run: |
# Extract the changelog for the latest version and trim blank lines
CHANGELOG=$(awk '/^## [0-9]+\.[0-9]+\.[0-9]+/ {if (p) exit; p=1; next} p' CHANGELOG.md | sed '/^[[:space:]]*$/d')
# Output the extracted changelog for debugging
echo "$CHANGELOG"
# Save output
echo 'changelog<<EOF' >> $GITHUB_OUTPUT
echo "$CHANGELOG" >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
- uses: actions/setup-node@v4
with:
node-version: '22.5.1'
Expand Down

0 comments on commit d6bd860

Please sign in to comment.