diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ff4c134..5869ba30 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}", diff --git a/langs b/langs index a9b0390a..599570cd 160000 --- a/langs +++ b/langs @@ -1 +1 @@ -Subproject commit a9b0390a751be0a631cf8a356d61933795d9fcbc +Subproject commit 599570cd2a6d1b43a109634896b5c52121e155e3