Skip to content

Commit 7401b7f

Browse files
authored
Merge pull request #3 from PowerGridModel/feature/fix-rate-limit
rate-limit: add PAT input to increase the rate limit
2 parents 273de61 + 5543a63 commit 7401b7f

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.github/workflows/test-action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626

2727
- name: Set PyPI Version
2828
uses: ./
29+
with:
30+
token: ${{ secrets.GITHUB_TOKEN }}
2931

3032
- name: Show latest version
3133
run: cat PYPI_VERSION

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0
1+
0.1

action.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,22 @@
44

55
name: Bump Version
66
description: Retrieve the latest release tag, run the Bash script to bump version, and save the new version to PYPI_VERSION.
7+
8+
inputs: # actions don't have secrets, so we use inputs instead
9+
token:
10+
description: "A Github PAT, e.g. secrets.GITHUB_TOKEN. When not provided, the action will use the default token (may hit rate limits)."
11+
712
runs:
813
using: "composite"
914
steps:
1015
- name: Get Latest Release Tag
1116
id: fetch_tag
12-
uses: pozetroninc/github-action-get-latest-release@master
17+
uses: pozetroninc/github-action-get-latest-release@v0.8.0
1318
with:
1419
repository: ${{ github.repository }}
1520
excludes: prerelease, draft
16-
21+
token: ${{ inputs.token }}
22+
1723
- name: Run version bump script
1824
id: bump_version
1925
shell: bash

0 commit comments

Comments
 (0)