Skip to content

Commit

Permalink
chore(action): fix release (4m-mazi#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogyuchi authored Jul 14, 2023
1 parent f3f7c95 commit 3dcaae5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ jobs:

post-release:
needs: [build]
permissions: {}
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Create published label
Expand All @@ -52,9 +53,9 @@ jobs:
echo "pr_number=$(printf '${{ github.event.head_commit.message }}' | head -n1 | sed -nE 's/.+\(#([0-9]+)\)$/\1/p')" >> "$GITHUB_OUTPUT"
- name: Add comment to PR
run: |
gh pr comment "$pr_number" --body 'Successfully published to ghcr.io\n```\n${{ join(needs.build.outputs.docker_tags, '\n') }}\n```'
gh pr comment ${{ steps.pr-number.outputs.pr_number }} --body 'Successfully published to ghcr.io\n```\n${{ join(needs.build.outputs.docker_tags, '\n') }}\n```'
- name: Change labels on PR
run: |
gh pr edit "$pr_number" \
gh pr edit ${{ steps.pr-number.outputs.pr_number }} \
--remove-label 'autorelease: tagged' \
--add-label 'autorelease: published'

0 comments on commit 3dcaae5

Please sign in to comment.