Skip to content

Commit

Permalink
ci: Fix MELPA-releasing action
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
ubolonton committed Feb 12, 2022
1 parent 5e10916 commit 3cfab8a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,24 @@ jobs:
echo "RELEASE_VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Greenlight releasing to MELPA
run: |
git push origin ${{ env.RELEASE_VERSION }}:refs/heads/release
uses: actions/github-script@v5
with:
github-token: ${{ secrets.PAT }}
script: |
github.rest.git.updateRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "heads/release",
sha: context.sha
})
continue-on-error: true

# We don't want this to trigger workflows, so we don't use a personal access token.
- name: Greenlight releasing to MELPA Stable
uses: actions/github-script@v4
uses: actions/github-script@v5
with:
script: |
github.git.createRef({
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/melpa-stable/v${{ env.RELEASE_VERSION }}",
Expand Down

0 comments on commit 3cfab8a

Please sign in to comment.