pek2024 対応 (残り: CSS 修正 & イベント案内スライド追加) #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push a new tag with merged Pull Request | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
tagging: | |
runs-on: ubuntu-latest | |
if: contains(github.event.pull_request.title, '[dreamkast-releasebot]') | |
steps: | |
- name: Generate token | |
id: generate_token | |
uses: tibdex/github-app-token@v1 | |
with: | |
app_id: ${{ secrets.APP_ID }} | |
private_key: ${{ secrets.PRIVATE_KEY }} | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ steps.generate_token.outputs.token }} | |
- uses: actions-ecosystem/action-release-label@v1 | |
id: release-label | |
if: ${{ github.event.pull_request.merged == true }} | |
- uses: actions-ecosystem/action-get-latest-tag@v1 | |
id: get-latest-tag | |
if: ${{ steps.release-label.outputs.level != null }} | |
- uses: actions-ecosystem/action-bump-semver@v1 | |
id: bump-semver | |
if: ${{ steps.release-label.outputs.level != null }} | |
with: | |
current_version: ${{ steps.get-latest-tag.outputs.tag }} | |
level: ${{ steps.release-label.outputs.level }} | |
- uses: actions-ecosystem/action-push-tag@v1 | |
if: ${{ steps.release-label.outputs.level != null }} | |
with: | |
tag: ${{ steps.bump-semver.outputs.new_version }} | |
message: '${{ steps.bump-semver.outputs.new_version }}: PR #${{ github.event.pull_request.number }} ${{ github.event.pull_request.title }}' |