Check SDK updates (manual) #463
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
required: true | |
tag: | |
description: NPM tag to use | |
default: latest | |
required: true | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
update-version: | |
runs-on: buildjet-4vcpu-ubuntu-2204 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: FuelLabs/github-actions/setups/node@master | |
with: | |
node-version: 18.18.0 | |
pnpm-version: 8.15.7 | |
- 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 }} |