Skip to content

Commit bcbaf63

Browse files
authored
Fix syntax error in release.yml (#3931)
1 parent f2917d5 commit bcbaf63

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: 'Draft Release'
1515
runs-on: ubuntu-latest
1616
outputs:
17-
version: ${{ steps make-release.outputs.version }}
17+
version: ${{ steps.make-release.outputs.version }}
1818
steps:
1919
- name: 'Check out code'
2020
uses: actions/checkout@v4
@@ -65,11 +65,11 @@ jobs:
6565
runs-on: ubuntu-latest
6666
environment: production
6767
needs: release
68+
env:
69+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
VERSION: ${{ needs.draft-release.outputs.version }}
6871
steps:
6972
- name: 'Finalise release'
70-
env:
71-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72-
VERSION: ${{ needs.draft-release.outputs.version }}
7373
run: |
7474
set -x
7575
gh release edit ${VERSION} \
@@ -81,11 +81,10 @@ jobs:
8181
GITHUB_TOKEN: ${{ secrets.JENKINS_GITHUB_PAT }}
8282
run: |
8383
set -x
84-
version="$(cat package/version)"
8584
curl --fail \
8685
-X POST \
8786
-H "Accept: application/vnd.github+json" \
8887
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
8988
-H "X-GitHub-Api-Version: 2022-11-28" \
9089
https://api.github.com/repos/runtimeverification/devops/dispatches \
91-
-d '{"event_type":"on-demand-test","client_payload":{"repo":"runtimeverification/haskell-backend","version":"'${version}'"}}'
90+
-d '{"event_type":"on-demand-test","client_payload":{"repo":"runtimeverification/haskell-backend","version":"'${VERSION}'"}}'

0 commit comments

Comments
 (0)