diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml deleted file mode 100644 index 712dbfe283..0000000000 --- a/.github/workflows/bump-version.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: 📦 Bump Workflow - -on: - workflow_dispatch: - inputs: - new_version: - description: | - The version to update to (eg: 2.6.0 or 2.6.0-dev do not include `v`). - required: true -jobs: - - apply-version-bump: - runs-on: ubuntu-22.04 - name: Apply Version Bump - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Apply Bump - shell: bash - env: - NEW_VERSION: ${{ inputs.new_version }} - run: | - bash ./scripts/release/bump-version.sh "$NEW_VERSION" - - - name: Create Pull Request - uses: peter-evans/create-pull-request@v4 - with: - title: "Release Engineering: Version bump to ${{ github.event.inputs.new_version }}." - body: "This PR updates codeql-coding-standards to version ${{ github.event.inputs.new_version }}." - commit-message: "Version bump to ${{ github.event.inputs.new_version }}." - delete-branch: true - branch: "automation/version-bump-${{ github.event.inputs.new_version }}" diff --git a/.github/workflows/finalize-release.yml b/.github/workflows/finalize-release.yml index 56b150a702..d3f511caba 100644 --- a/.github/workflows/finalize-release.yml +++ b/.github/workflows/finalize-release.yml @@ -99,10 +99,21 @@ jobs: next_version=$(python scripts/release/next-version.py --component minor --pre-release dev -- $version) echo "NEXT_VERSION=$next_version" >> "$GITHUB_ENV" working-directory: tooling + + - name: Generate token + if: env.HOTFIX_RELEASE == 'false' + id: generate-token + uses: actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e + with: + app-id: ${{ vars.AUTOMATION_APP_ID }} + private-key: ${{ secrets.AUTOMATION_PRIVATE_KEY }} + owner: ${{ github.repository_owner }} + repositories: "codeql-coding-standards" - name: Bump main version + if: env.HOTFIX_RELEASE == 'false' env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ steps.generate-token.outputs.token }} run: | echo "Bumping main version to $NEXT_VERSION"