Skip to content

Commit

Permalink
Update auto-release-when-pr-is-merged.yml (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
nakamasato authored Aug 30, 2022
1 parent 095e188 commit b40f921
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/auto-release-when-pr-is-merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,20 @@ jobs:
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
./.publish-release.sh
latest_version=$(gh release list -L 1 | cut -f1)
release_tag=$(gh release view --json tagName | jq -r .tagName)
release_url=$(gh release view --json url | jq -r .url)
echo "::set-output name=release_tag::$release_tag"
echo "::set-output name=release_url::$release_url"
- uses: actions/github-script@v6
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `New release [${{ steps.release.outputs.release_tag }}](${{ steps.release.outputs.release_url }}) has been published! (${new Date()})`
})

0 comments on commit b40f921

Please sign in to comment.