diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 0a8cc05..814c869 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -26,6 +26,8 @@ jobs: - name: Set PyPI Version uses: ./ + with: + token: ${{ secrets.GITHUB_TOKEN }} - name: Show latest version run: cat PYPI_VERSION diff --git a/VERSION b/VERSION index ba66466..49d5957 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0 +0.1 diff --git a/action.yml b/action.yml index b433b70..5619c85 100644 --- a/action.yml +++ b/action.yml @@ -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