Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update auto-release-when-pr-is-merged.yml #280

Merged
merged 1 commit into from
Sep 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/auto-release-when-pr-is-merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ jobs:
})

- name: Create Release
id: create_release
id: release
uses: actions/create-release@v1 # not maintained
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.release_tag }}
release_name: ${{ env.release_tag }}
body: |
This release is automatically created by [GitHub Actions draft-release.yml](https://github.com/nakamasato/github-actions-practice/blob/master/.github/workflows/draft-release.yml).
This release is automatically created by [GitHub Actions auto-release-when-pr-is-merged.yml](https://github.com/nakamasato/github-actions-practice/blob/master/.github/workflows/auto-release-when-pr-is-merged.yml).
Triggered PR: [${{ github.event.number }}:${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})
draft: true
prerelease: false
Expand All @@ -48,7 +48,7 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `[release ${{ steps.release.outputs.latest_version }}](${{ steps.release.outputs.html_url }}) has been created. (${new Date()})`
body: `Draft release ([${{ steps.release.outputs.latest_version }}](${{ steps.release.outputs.html_url }})) has been created. (${new Date()})`
})

release:
Expand Down