Merge pull request #456 from WadeBarnes/main #5
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: Triggered by set Tag | |
on: | |
push: | |
tags: | |
- setRelease-v** | |
jobs: | |
taginfos: | |
name: get Tag infos | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.get-release-info.outputs.version }} | |
versionTag: ${{ steps.get-release-info.outputs.versionTag }} | |
prBranch: ${{ steps.get-release-info.outputs.prBranch }} | |
BASE: ${{ steps.get-branch.outputs.branch }} | |
steps: | |
- name: checkout source code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: extract branch | |
id: get-branch | |
uses: hyperledger/indy-shared-gha/.github/actions/branch-from-tag@v1 | |
with: | |
tag: ${{ github.ref }} | |
- name: get-release-info | |
id: get-release-info | |
uses: hyperledger/indy-shared-gha/.github/actions/get-release-info@v1 | |
with: | |
versionString: "${{ github.ref }}" | |
bump_version: | |
name: Bump Version Number | |
needs: taginfos | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.8' | |
- name: Set up python | |
run: | | |
pip3 install semver | |
- name: Prepare package and set version | |
run: | | |
python3 updateVersion.py -t ${{ needs.taginfos.outputs.VERSION }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
author: ${{ github.actor }} <${{ github.event.pusher.email }}> | |
committer: ${{ github.actor }} <${{ github.event.pusher.email }}> | |
signoff: true | |
commit-message: Update Version number for v${{ needs.taginfos.outputs.version }} | |
base: ${{ needs.taginfos.outputs.BASE }} | |
branch: ${{ needs.taginfos.outputs.prBranch }} | |
title: "[${{ needs.taginfos.outputs.versionTag }}] - Update Version Number for Release" | |
body: "[${{ needs.taginfos.outputs.versionTag }}] - Update Version number for Release" | |
delete-branch: true | |
token: ${{ secrets.BOT_PR_PAT }} |