Skip to content

Commit

Permalink
gh-actions: fix bump and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
drjova committed Jul 16, 2024
1 parent e79ddc4 commit 7c607a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Bump package version
name: Bump package version and publish to pypi

on:
workflow_call:
secrets:
PAT:
required: true

jobs:
bump:
Expand All @@ -14,7 +11,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.PAT }}
token: ${{ secrets.INSPIRE_BOT_TOKEN }}
fetch-depth: 0

- name: Set up Python
Expand Down Expand Up @@ -43,7 +40,7 @@ jobs:
uses: ad-m/[email protected]
with:
branch: ${{ github.ref }}
github_token: ${{ secrets.PAT }}
github_token: ${{ secrets.INSPIRE_BOT_TOKEN }}
tags: true

publish:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:

bump_version:
needs: [python2_tests, python3_tests]
uses: ./.github/workflows/bump.yml
uses: ./.github/workflows/bump-and-publish.yml
secrets: inherit

0 comments on commit 7c607a2

Please sign in to comment.