Skip to content

Commit 64d8a94

Browse files
committed
Fix release and version YAML. They were not triggered correctly.
1 parent 90f7206 commit 64d8a94

2 files changed

Lines changed: 14 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Release
2-
true:
2+
on:
33
workflow_run:
44
workflows:
55
- CI
@@ -11,11 +11,13 @@ permissions:
1111
jobs:
1212
check-and-release:
1313
runs-on: ubuntu-latest
14-
if: ${{ github.event.workflow_run.head_branch == 'release' && github.event.workflow_run.conclusion
14+
if:
15+
${{ github.event.workflow_run.head_branch == 'release' && github.event.workflow_run.conclusion
1516
== 'success' }}
1617
steps:
1718
- name: Log trigger information
18-
run: 'echo "Triggered by workflow: ${{ github.event.workflow_run.name }}"
19+
run:
20+
'echo "Triggered by workflow: ${{ github.event.workflow_run.name }}"
1921
2022
echo "Workflow status: ${{ github.event.workflow_run.conclusion }}"
2123
@@ -41,7 +43,8 @@ jobs:
4143
id: release_details
4244
uses: actions/github-script@v7
4345
with:
44-
script: "const commit_sha = \"${{ github.event.workflow_run.head_sha }}\"\
46+
script:
47+
"const commit_sha = \"${{ github.event.workflow_run.head_sha }}\"\
4548
;\nconst { owner, repo } = context.repo;\n\n// Try to find a PR associated\
4649
\ with this commit\nconst prs = await github.rest.repos.listPullRequestsAssociatedWithCommit({\n\
4750
\ owner,\n repo,\n commit_sha,\n});\n\nlet title = \"\";\nlet body\
@@ -58,7 +61,7 @@ jobs:
5861
with:
5962
tag_name: v${{ env.VERSION }}
6063
name: Release v${{ env.VERSION }}
61-
body: '## ${{ steps.release_details.outputs.title }}
64+
body: "## ${{ steps.release_details.outputs.title }}
6265
6366
6467
${{ steps.release_details.outputs.body }}
@@ -69,10 +72,10 @@ jobs:
6972
You can find the compilation artifact downloads for all required platforms
7073
in the respective CI action execution artifacts.
7174
72-
'
75+
"
7376
target_commitish: ${{ github.event.workflow_run.head_sha }}
7477
generate_release_notes: false
7578
draft: false
7679
prerelease: false
7780
env:
78-
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
81+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"

.github/workflows/update-version-readme.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Update README and Bump Patch Version
2-
true:
2+
on:
33
release:
44
types:
55
- published
@@ -47,11 +47,11 @@ jobs:
4747
ref: prerelease
4848
fetch-depth: 0
4949
- name: Increment patch version on prerelease
50-
run: 'chmod +x scripts/increment_version.sh
50+
run: "chmod +x scripts/increment_version.sh
5151
5252
scripts/increment_version.sh patch
5353
54-
'
54+
"
5555
- name: Commit version bump to prerelease
5656
run: 'git config user.name "GitHub Actions"
5757
@@ -67,4 +67,4 @@ jobs:
6767
6868
'
6969
env:
70-
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
70+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"

0 commit comments

Comments
 (0)