Skip to content

Commit 3cfab8a

Browse files
committed
ci: Fix MELPA-releasing action
[skip ci]
1 parent 5e10916 commit 3cfab8a

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

Diff for: .github/workflows/release.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -171,16 +171,24 @@ jobs:
171171
echo "RELEASE_VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
172172
173173
- name: Greenlight releasing to MELPA
174-
run: |
175-
git push origin ${{ env.RELEASE_VERSION }}:refs/heads/release
174+
uses: actions/github-script@v5
175+
with:
176+
github-token: ${{ secrets.PAT }}
177+
script: |
178+
github.rest.git.updateRef({
179+
owner: context.repo.owner,
180+
repo: context.repo.repo,
181+
ref: "heads/release",
182+
sha: context.sha
183+
})
176184
continue-on-error: true
177185

178186
# We don't want this to trigger workflows, so we don't use a personal access token.
179187
- name: Greenlight releasing to MELPA Stable
180-
uses: actions/github-script@v4
188+
uses: actions/github-script@v5
181189
with:
182190
script: |
183-
github.git.createRef({
191+
github.rest.git.createRef({
184192
owner: context.repo.owner,
185193
repo: context.repo.repo,
186194
ref: "refs/tags/melpa-stable/v${{ env.RELEASE_VERSION }}",

0 commit comments

Comments
 (0)