-
Notifications
You must be signed in to change notification settings - Fork 440
60 lines (53 loc) · 1.63 KB
/
update-sdk-manual.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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 }}