Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ on:
description: "Version String for task.h on main branch (leave empty to leave as-is)."
required: false
default: ''
github_token:
description: 'GitHub token for creating releases and pushing changes'
required: false
default: ${{ github.token }}

jobs:
release-packager:
Expand All @@ -35,7 +31,7 @@ jobs:
with:
architecture: x64
env:
GITHUB_TOKEN: ${{ github.event.inputs.github_token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install GitHub CLI
run: |
Expand Down Expand Up @@ -90,7 +86,7 @@ jobs:
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
MAIN_BR_VERSION_NUMBER: ${{ github.event.inputs.main_br_version }}
COMMIT_SHA_1: ${{ env.COMMIT_SHA_1 }}
GITHUB_TOKEN: ${{ github.event.inputs.github_token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Install deps and run
pip install -r ./tools/.github/scripts/release-requirements.txt
Expand Down Expand Up @@ -126,7 +122,7 @@ jobs:
- name: Create pull request
env:
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
GH_TOKEN: ${{ github.event.inputs.github_token }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_FULL_NAME: ${{ github.repository }}
working-directory: ./local_kernel
run: |
Expand All @@ -140,7 +136,7 @@ jobs:

- name: Wait for PR to be merged
env:
GH_TOKEN: ${{ github.event.inputs.github_token }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_FULL_NAME: ${{ github.repository }}
working-directory: ./local_kernel
run: |
Expand Down Expand Up @@ -179,7 +175,7 @@ jobs:
- name: Commit SBOM file
env:
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
GITHUB_TOKEN: ${{ github.event.inputs.github_token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: ./local_kernel
run: |
git add .
Expand All @@ -193,7 +189,7 @@ jobs:
MAIN_BR_VERSION_NUMBER: ${{ github.event.inputs.main_br_version }}
COMMIT_SHA_2: ${{ env.COMMIT_SHA_2 }}
REPO_OWNER: ${{ github.repository_owner }}
GITHUB_TOKEN: ${{ github.event.inputs.github_token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Install deps and run
pip install -r ./tools/.github/scripts/release-requirements.txt
Expand All @@ -212,7 +208,7 @@ jobs:
if: always()
env:
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
GH_TOKEN: ${{ github.event.inputs.github_token }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: ./local_kernel
run: |
# Only delete release-prep branch if the PR was already merged
Expand Down
Loading