Skip to content

Commit b09ab32

Browse files
committed
token
1 parent e73dca3 commit b09ab32

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

.github/workflows/test-no-changes-file.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
changes-file: ""
3434
# We always want to do a release when running tests.
3535
_force_release: true
36+
_token: ${{ secrets.ACTIONS_RUST_RELEASE_TESTING_TOKEN }}
3637
- name: Install psutils on Windows
3738
run: choco install --ignore-checksums psutils
3839
if: runner.os == 'Windows'

.github/workflows/test-working-directory.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
target: ${{ matrix.platform.target }}
5454
# We always want to do a release when running tests.
5555
_force_release: true
56+
_token: ${{ secrets.ACTIONS_RUST_RELEASE_TESTING_TOKEN }}
5657
- name: Install psutils on Windows
5758
run: choco install --ignore-checksums psutils
5859
if: runner.os == 'Windows'

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
target: ${{ matrix.platform.target }}
5252
# We always want to do a release when running tests.
5353
_force_release: true
54+
_token: ${{ secrets.ACTIONS_RUST_RELEASE_TESTING_TOKEN }}
5455
- name: Install psutils on Windows
5556
run: choco install --ignore-checksums psutils
5657
if: runner.os == 'Windows'

action.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ inputs:
5858
current working directory.
5959
default: "."
6060

61+
action-gh-release-parameters:
62+
description: |
63+
A JSON string containing parameters to pass to `softprops/action-gh-release@v2`. You can use
64+
the `toJSON()` function in your action to make passing this easier.
65+
default: "{}"
66+
6167
_repository:
6268
description: |
6369
The repository to which release should be published. Currently only supported for testing. I
@@ -67,6 +73,10 @@ inputs:
6773
description: |
6874
If true, forces a release. Currently only supported for testing.
6975
76+
_token:
77+
description: |
78+
The GitHub token to pass to action-gh-release. Currently only supported for testing.
79+
7080
outputs:
7181
artifact-id:
7282
description: |
@@ -154,5 +164,5 @@ runs:
154164
files: ${{ inputs.working-directory }}/${{ steps.package-archive.outputs.archive-basename }}*
155165
body_path: ${{ ( inputs.changes-file && format( '{0}/{1}', inputs.working-directory, inputs.changes-file ) ) || '' }}
156166
repository: ${{ inputs._repository || '' }}
167+
token: ${{ inputs._token || github.token }}
157168
if: ( github.ref_type == 'tag' && startsWith( github.ref_name, inputs.release-tag-prefix ) ) || inputs._force_release
158-

0 commit comments

Comments
 (0)