File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 61
61
publishstable :
62
62
name : Publish stable packages
63
63
if : github.event.release.target_commitish == 'test-package-publishing' && github.event.release.prerelease == false
64
- env :
65
- RELEASE_CONTEXT : ${{ toJson(github.event.release) }}
66
- TEST_CONTEXT : ${{ toJson(github.event) }}
67
64
runs-on : ubuntu-latest
68
65
steps :
69
66
- name : ⬇️ Checkout repo
@@ -76,18 +73,14 @@ jobs:
76
73
VALID_SEMVER_VERSION=$(node scripts/version-helper.js $SEMVER_VERSION)
77
74
echo "Semver stable version unclean $SEMVER_VERSION"
78
75
echo "Semver stable version valid $VALID_SEMVER_VERSION"
79
- echo "TEST_CONTEXT: $TEST_CONTEXT"
80
- echo "Repository: " ${{github.event.repository}}
81
- echo "Owner: " ${{github.event.repository.owner}}
82
- echo "Login: " ${{github.event.repository.owner.login}}
83
76
84
77
- uses : actions/github-script@v6
85
78
with :
86
79
script : |
87
80
console.log(context)
88
81
github.rest.repos.updateRelease({
89
- owner: github.event.repository .owner.login,
90
- repo: github.event .repository.name,
91
- release_id: github.event .release.id,
82
+ owner: context.payload .owner.login,
83
+ repo: context.payload .repository.name,
84
+ release_id: context.payload .release.id,
92
85
body: '👋 woo hoo!'
93
86
})
You can’t perform that action at this time.
0 commit comments