Update escrowBumpVersion.yaml #125
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 is a basic workflow to help you get started with Actions | |
name: Bump Escrow Version | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout | |
uses: actions/[email protected] | |
- uses: ashley-taylor/[email protected] | |
with: | |
path: deposit_information.json | |
property: DepositVersion | |
id: getVersion | |
- name: Display current version | |
run: echo "Found version ${{steps.getVersion.outputs.value}}" | |
- uses: actions-ecosystem/action-bump-semver@v1 | |
id: bumpVersion | |
with: | |
current_version: ${{steps.getVersion.outputs.value}} | |
level: minor | |
- name: Display new version | |
run: echo "Bumped version ${{steps.bumpVersion.outputs.new_version}}" | |
# Runs a single command using the runners shell | |
- uses: jossef/action-set-json-field@v1 | |
with: | |
file: deposit_information.json | |
field: DepositVersion | |
value: ${{ steps.bumpVersion.outputs.new_version }} | |
- uses: EndBug/[email protected] # You can change this to use a specific version. | |
with: | |
add: 'deposit_information.json' | |
message: 'Bump escrow version to ${{ steps.bumpVersion.outputs.new_version }}' | |
default_author: github_actions | |
github_token: ${{ secrets.ACTION_GITHUB_TOKEN }} | |