This repository has been archived by the owner on May 15, 2024. It is now read-only.
Update github.com/knqyf263/mockery digest to 8be979a - autoclosed #100
Workflow file for this run
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: version | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
bump-version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.PERSONAL_ACCESS_TOKEN_FOR_CI }} # Don't use GITHUB_TOKEN because push event is not triggered. | |
if: ${{ github.event.pull_request.merged == true }} | |
- uses: actions-ecosystem/action-release-label@v1 | |
id: release-label | |
- uses: actions-ecosystem/action-get-latest-tag@v1 | |
id: get-latest-tag | |
if: ${{ steps.release-label.outputs.level != null }} | |
with: | |
semver_only: true | |
- 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 }}" |