Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:

- name: Set PyPI Version
uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Show latest version
run: cat PYPI_VERSION
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0
0.1
10 changes: 8 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,22 @@

name: Bump Version
description: Retrieve the latest release tag, run the Bash script to bump version, and save the new version to PYPI_VERSION.

inputs: # actions don't have secrets, so we use inputs instead
token:
description: "A Github PAT, e.g. secrets.GITHUB_TOKEN. When not provided, the action will use the default token (may hit rate limits)."

runs:
using: "composite"
steps:
- name: Get Latest Release Tag
id: fetch_tag
uses: pozetroninc/github-action-get-latest-release@master
uses: pozetroninc/github-action-get-latest-release@v0.8.0
with:
repository: ${{ github.repository }}
excludes: prerelease, draft

token: ${{ inputs.token }}

- name: Run version bump script
id: bump_version
shell: bash
Expand Down
Loading