Version Bump #3
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 Bump | |
on: | |
release: | |
types: | |
- created | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '18' | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Checkout Latest Commit | |
uses: actions/checkout@v4 | |
- name: Output before version | |
id: get-before-version | |
shell: bash | |
run: echo "::set-output name=before-version::$(.github/scripts/get-version.sh)" | |
- name: Bump Version | |
env: | |
TOKEN: ${{ secrets.github_token }} | |
NAME: ${{ inputs.git-username }} | |
AUTO: true | |
AUTO_SPLITTER: '-' | |
AUTO_HIGHER: true | |
AUTO_RELEASE: false | |
run: .github/scripts/version-bump.sh | |
shell: bash | |
- name: Set outputs | |
id: get-outputs | |
shell: bash | |
env: | |
BEFORE_VERSION: ${{ steps.get-outputs.outputs.version }} | |
run: | | |
echo "::set-output name=version::$(${{github.action_path}}/src/get-version.sh)" | |
echo "::set-output name=bumped::$(${{github.action_path}}/src/bumped.sh)" | |
- name: Result | |
shell: bash | |
run: "echo 'Version is now ${{ steps.get-outputs.outputs.version }} (Bumped: ${{ steps.get-outputs.outputs.bumped }})'" | |
- name: Print Version | |
run: "echo 'New Version: ${{steps.bump.outputs.version}}'" |