Skip to content

Commit

Permalink
feat: add pr comment when releasing (#1160)
Browse files Browse the repository at this point in the history
- Add `publisher` inputs to the update SDK workflow.
- Comment on the `publisher` PR with the Wallet's PR.
- Make `types` package private.
  • Loading branch information
helciofranco authored Mar 20, 2024
1 parent 3b2f3a4 commit d32c7bd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/update-sdk-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
uses: FuelLabs/github-actions/update-sdk@master
with:
branch: master
changeset: true
packages: fuels,@fuels/react,@fuels/connectors
npm-tag: ${{ matrix.tag }}
env:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/update-sdk-manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ name: Check SDK updates (manual)
on:
workflow_dispatch:
inputs:
publisher:
description: Publisher repo name (e.g. fuels-ts)
required: false
issue:
description: Publisher repo issue (e.g. 1905)
required: false
packages:
description: Packages to update (comma separated)
default: fuels
Expand All @@ -29,10 +35,23 @@ jobs:
- uses: FuelLabs/github-actions/setups/node@master

- name: Checking updates
id: update
uses: FuelLabs/github-actions/update-sdk@master
with:
branch: master
changeset: true
packages: ${{ inputs.packages }}
npm-tag: ${{ inputs.tag }}
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}

- name: Add PR comment on the publisher repo
if: steps.update.outputs['has-updates'] == 'true' && inputs.issue && inputs.publisher
uses: mshick/add-pr-comment@v2
with:
repo-name: ${{ inputs.publisher }}
issue: ${{ inputs.issue }}
repo-token: ${{ secrets.REPO_TOKEN }}
message: |
✨ A PR has been created under the `${{ inputs.tag }}` tag on `fuels-wallet` repo.
${{ steps.update.outputs.pr }}

0 comments on commit d32c7bd

Please sign in to comment.