From a855d48be8f644eb1ff7a17a9bd05ed9208b3806 Mon Sep 17 00:00:00 2001 From: Ryan McGinty Date: Fri, 1 Mar 2024 14:44:44 -0800 Subject: [PATCH] add missing fields for gh action --- .github/actions/get-version-tag/action.yml | 8 +++----- .github/workflows/bump_version.yml | 1 + 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/actions/get-version-tag/action.yml b/.github/actions/get-version-tag/action.yml index 6fb5d5b..ec82915 100644 --- a/.github/actions/get-version-tag/action.yml +++ b/.github/actions/get-version-tag/action.yml @@ -15,13 +15,9 @@ inputs: type: boolean required: false default: false -secrets: GITHUB_TOKEN: description: 'Token for AllenInstitute GitHub' required: true - GIT_SSH_PRIVATE_KEY: - description: 'SSH private key for AllenInstitute GitHub' - required: true outputs: major: description: 'The major version number' @@ -58,6 +54,7 @@ runs: DRY_RUN: true - name: Set Outputs id: set-outputs + shell: bash run: | new_tag=${{ steps.bump-version-tag.outputs.new_tag }} new_version=$(echo $new_tag | sed 's/^v//') @@ -99,6 +96,7 @@ runs: bump_each_commit_patch_pattern: "/\((PATCH|patch|BUG|bug|BUGFIX|bugfix|BUMP|bump)\)/" - name: Set Outputs Alt id: set-outputs-alt + shell: bash run: | echo 'changed: ${{ steps.bump-version-tag-alt.outputs.changed }}' echo 'major: ${{ steps.bump-version-tag-alt.outputs.major }}' @@ -117,4 +115,4 @@ runs: # echo "::set-output name=version::${{ steps.bump-version-tag-alt.outputs.version }}" # echo "::set-output name=version_tag::${{ steps.bump-version-tag-alt.outputs.version_tag }}" # echo "::set-output name=version_type::${{ steps.bump-version-tag-alt.outputs.version_type }}" - # echo "::set-output name=previous_version::${{ steps.bump-version-tag-alt.outputs.previous_version }}" + # echo "::set-output name=previous_version::${{ steps.bump-version-tag-alt.outputs.previous_version }}" \ No newline at end of file diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index a727a8b..231bc36 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -47,6 +47,7 @@ jobs: id: version-tag with: bump_type: ${{ github.event.inputs.bump_type }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} update-version-and-tag: name: Update Repo Tag and Version runs-on: ubuntu-latest