Use version information from Workflow trigger to set version (#1718)
This allows passing the version from Emscripten-releases.
diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml
index 0a16b3a..64c6ee0 100644
--- a/.github/workflows/create-release.yml
+++ b/.github/workflows/create-release.yml
@@ -9,6 +9,9 @@
nonlto-sha:
required: true
type: string
+ version:
+ required: true
+ type: string
jobs:
create-release-pr:
@@ -17,7 +20,8 @@
- name: Checkout repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run create_release.py
- run: python3 scripts/create_release.py -r ${{ inputs.lto-sha }} -a ${{ inputs.nonlto-sha }} --gh-action
+ run: |
+ python3 scripts/create_release.py -r ${{ inputs.lto-sha }} -a ${{ inputs.nonlto-sha }} --gh-action -v ${{ inputs.version }}
- name: Create PR
id: cpr
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1