This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
APIGOV-UpdateSDKForRelease - Update to SDK v1.1.89 #65
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
# This action gets triggered by a closed PR | |
name: Create tag for release | |
on: | |
pull_request: | |
types: | |
- closed | |
jobs: | |
# only run this job if the merge name is "APIGOV-UpdateSDKForRelease", which comes from the automated release | |
if_SDK_update_merged: | |
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'APIGOV-UpdateSDKForRelease') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Bump tag version and push tag | |
id: tag_version | |
uses: mathieudutour/[email protected] | |
with: | |
# by default, this action creates a tag with a 'v' prefix, and bumps the patch version. | |
# See https://github.com/mathieudutour/github-tag-action to customize these rules. | |
github_token: ${{ secrets.ACTION_ACCESS_TOKEN }} | |
- name: Show the new tag | |
run: | | |
echo "previous tag ${{ steps.tag_version.outputs.previous_tag }} | |
echo "new tag ${{ steps.tag_version.outputs.new_tag }} | |
- name: Create a GitHub release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ steps.tag_version.outputs.new_tag }} | |
name: Release ${{ steps.tag_version.outputs.new_tag }} | |
body: ${{ steps.tag_version.outputs.changelog }} | |
generateReleaseNotes: true |