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
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ jobs:

- name: Determine new version
id: determine-new-version
# We get output of this action inside a PYPI_VERSION file.
# It is unrelated to PyPI. We simply use it to determine the new version for the release
run: echo "version=$(cat PYPI_VERSION)" >> "$GITHUB_OUTPUT"
# We get output of this action inside a VERSION file.
run: echo "version=$(cat VERSION)" >> "$GITHUB_OUTPUT"

- name: generate GitHub App token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

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

- name: Show latest version
run: cat PYPI_VERSION
run: cat VERSION
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: MPL-2.0

name: Bump Version
description: Retrieve the latest release tag, run the Bash script to bump version, and save the new version to PYPI_VERSION.
description: Retrieve the latest release tag, run the Bash script to bump version, and save (possibly overwriting) the new version to the VERSION file.

inputs: # actions don't have secrets, so we use inputs instead
token:
Expand Down Expand Up @@ -65,5 +65,5 @@ runs:

# Run the bump_version function with the latest tag
new_version=$(bump_version "${{ steps.fetch_tag.outputs.release }}")
# Save the new version to PYPI_VERSION file
echo "$new_version" > PYPI_VERSION
# Save the new version to VERSION file, will overwrite the existing file
echo "$new_version" > VERSION
Loading