Skip to content

Commit 10374f5

Browse files
committed
Use correct ref context
1 parent f6bc196 commit 10374f5

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/build-extension.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,9 @@ jobs:
9797
uses: actions/github-script@v4
9898
with:
9999
script: |
100-
console.log(context)
101100
console.log(context.ref)
102-
console.log(github.ref)
103101
// This script will create a release, and upload our files and release notes to it
104-
if (!"${{ github.ref }}".startsWith('refs/tags/v')) {
102+
if (!"${{ context.ref }}".startsWith('refs/tags/v')) {
105103
return
106104
}
107105
// Find the version tag
@@ -115,8 +113,8 @@ jobs:
115113
116114
// Create a release
117115
github.repos.createRelease({
118-
owner: context.repo.owner,
119-
repo: context.repo.repo,
116+
owner: context.repository.owner,
117+
repo: context.repository.repo,
120118
tag_name: version_tag,
121119
name: <name of the release>,
122120
body: <text for the release>,
@@ -126,8 +124,8 @@ jobs:
126124
127125
// Upload all the artifacts to it
128126
github.repos.uploadReleaseAsset({
129-
owner: context.repo.owner,
130-
repo: context.repo.repo,
127+
owner: context.repository.owner,
128+
repo: context.repository.repo,
131129
release_id: ...
132130
})
133131
*/

0 commit comments

Comments
 (0)