Skip to content

Commit 8c760d1

Browse files
chore: incorrectly attempting access to sign release artifacts variables (#694)
1 parent f0fbe91 commit 8c760d1

File tree

1 file changed

+6
-5
lines changed
  • .github/actions/compress_sign_and_upload

1 file changed

+6
-5
lines changed

.github/actions/compress_sign_and_upload/action.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,23 @@ runs:
2222
shell: bash
2323

2424
- name: Get release version and release package file name
25-
id: vars
25+
id: get_vars
2626
shell: bash
2727
run: |
2828
package_version=$(jq --raw-output '.version' package.json)
2929
echo "package_version=${package_version}" >> "$GITHUB_OUTPUT"
3030
echo "package_file=bson-${package_version}.tgz" >> "$GITHUB_OUTPUT"
31-
3231
- name: Create detached signature
3332
uses: mongodb-labs/drivers-github-tools/garasign/gpg-sign@v1
3433
with:
35-
filenames: ${{ steps.vars.package_file }}
34+
filenames: ${{ steps.get_vars.outputs.package_file }}
3635
garasign_username: ${{ inputs.garasign_username }}
3736
garasign_password: ${{ inputs.garasign_password }}
3837
artifactory_username: ${{ inputs.artifactory_username }}
3938
artifactory_password: ${{ inputs.artifactory_password }}
4039

4140
- name: "Upload release artifacts"
42-
run: gh release upload v${{ steps.vars.package_version }} ${{ steps.vars.package_file }}.sig
43-
shell: bash
41+
run: gh release upload v${{ steps.get_vars.outputs.package_version }} ${{ steps.get_vars.outputs.package_file }}.sig
42+
shell: bash
43+
env:
44+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)