Skip to content

Commit

Permalink
ci: Optimize GitHub workflow configuration.
Browse files Browse the repository at this point in the history
- Add `GITHUB_TOKEN` to workflow environment variables
- Remove redundant environment variable assignment in workflow configuration
  • Loading branch information
johnnyhuy committed Apr 21, 2024
1 parent 409497a commit 5bc90f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/fix-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ permissions: write-all

env:
VERSION: ${{ inputs.version }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
publish-package:
runs-on: ubuntu-latest
continue-on-error: true

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

steps:
Expand All @@ -37,7 +37,6 @@ jobs:
arch: [linux/amd64, linux/arm64]

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 5bc90f2

Please sign in to comment.