-
Notifications
You must be signed in to change notification settings - Fork 0
Overwriting a development version with a release version #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
8fb0796
45da08f
172e1d4
d32e52e
7077c7b
0b5b36f
2662bbf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -10,13 +10,25 @@ on: | |||||
|
|
||||||
| jobs: | ||||||
| update_release_draft: | ||||||
| if: ${{ !contains(github.head_ref, 'doc/changelog-update-') }} | ||||||
| permissions: | ||||||
| contents: write | ||||||
| pull-requests: write | ||||||
| runs-on: ubuntu-latest | ||||||
| timeout-minutes: 30 | ||||||
| outputs: | ||||||
| skip_job: ${{ steps.check.outputs.SKIP_JOB }} | ||||||
|
|
||||||
| steps: | ||||||
| - name: Check Commit Message | ||||||
| id: check | ||||||
| run: | | ||||||
| if [[ "${{ github.event.head_commit.message }}" =~ ^Merge\ pull\ request\ #[0-9]+\ from\ ${{ github.repository_owner }}/doc/changelog-update-.*$ ]]; then | ||||||
| echo "This commit is not target. Skip the workflow." | ||||||
| echo "SKIP_JOB=true" >> $GITHUB_OUTPUT | ||||||
| else | ||||||
| echo "SKIP_JOB=false" >> $GITHUB_OUTPUT | ||||||
| fi | ||||||
| - uses: release-drafter/release-drafter@v6 | ||||||
| env: | ||||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
|
|
@@ -25,6 +37,7 @@ jobs: | |||||
|
|
||||||
| update_version: | ||||||
| needs: update_release_draft | ||||||
| if: ${{ needs.update_release_draft.outputs.skip_job != 'true' }} | ||||||
|
||||||
| if: ${{ needs.update_release_draft.outputs.skip_job != 'true' }} | |
| if: ${{ needs.update_release_draft.outputs.skip_job != "\"true\"" }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logical type comparisons do not need to be enclosed in double quotes, so we will leave it as it is.
Uh oh!
There was an error while loading. Please reload this page.