Merge pull request #340 from gdt050579/339-dissasm-x64-and-x86-toggle… #254
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 Increase | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: | |
versionToUpdate: | |
description: 'Version to update' | |
required: true | |
default: 'minor' | |
type: choice | |
options: | |
- major | |
- minor | |
- patch | |
jobs: | |
version-ubuntu: | |
runs-on: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Get Version to env and increase it | |
run: | | |
output=$(python .github/workflows/get_version_and_update.py GViewCore/include/GView.hpp ${{ github.event.inputs.versionToUpdate }}) | |
echo "GVIEW_VERSION=$output" >> $GITHUB_ENV | |
- name: Show Version | |
run: echo "${{ env.GVIEW_VERSION }}" | |
- name: Commit files | |
run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git commit -m "Updated GVIEW version ${{ env.GVIEW_VERSION }}" -a | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |