Skip to content

Commit

Permalink
[BLD]: fix hotfix workflow (#3301)
Browse files Browse the repository at this point in the history
## Description of changes

Uses bot token instead of provided GitHub token to create hotfix PR.

## Test plan
*How are these changes tested?*

n/a

## Documentation Changes
*Are all docstrings for user-facing APIs updated if required? Do we need
to make documentation changes in the [docs
repository](https://github.com/chroma-core/docs)?*

n/a
  • Loading branch information
codetheweb authored Dec 13, 2024
1 parent 4fe7018 commit 2e34753
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/apply-hotfix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,11 @@ jobs:
runs-on: ubuntu-latest
needs:
- resolve-branch
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.HOSTED_CHROMA_WORKFLOW_DISPATCH_TOKEN }}
fetch-depth: 0

- name: Checkout branch
Expand Down Expand Up @@ -97,7 +95,7 @@ jobs:
- name: Create Pull Request
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.HOSTED_CHROMA_WORKFLOW_DISPATCH_TOKEN }}
script: |
const baseBranch = "${{ needs.resolve-branch.outputs.branch_name }}"
const headBranch = process.env.BRANCH_NAME
Expand Down

0 comments on commit 2e34753

Please sign in to comment.