Skip to content

Commit f51f072

Browse files
committed
fix(actions): forward GH_TOKEN into composite steps
1 parent 3c326b1 commit f51f072

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

.github/changeset-preview/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ runs:
1717
--pr "${{ github.event.number }}" \
1818
--body-file /tmp/changeset-preview.md \
1919
--marker "<!-- changeset-version-preview -->"
20+
env:
21+
GH_TOKEN: ${{ env.GH_TOKEN }}

.github/comment-on-release/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ Add this step to your `.github/workflows/release.yml` file after the `changesets
6060
GH_TOKEN: ${{ secrets.GH_TOKEN }}
6161
```
6262
63+
This action reads the token from the `GH_TOKEN` environment variable.
64+
6365
## Requirements
6466

6567
- Must be using [Changesets](https://github.com/changesets/changesets) for releases

.github/comment-on-release/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ runs:
1212
run: node ${{ github.action_path }}/comment-on-release.ts
1313
env:
1414
PUBLISHED_PACKAGES: ${{ inputs.published-packages }}
15+
GH_TOKEN: ${{ env.GH_TOKEN }}

0 commit comments

Comments
 (0)