File tree Expand file tree Collapse file tree 2 files changed +43
-6
lines changed Expand file tree Collapse file tree 2 files changed +43
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : Dependents
2
+ on :
3
+ workflow_run :
4
+ workflows : [ "Publish" ]
5
+ branches : [ master ]
6
+ types :
7
+ - completed
8
+
9
+ jobs :
10
+ VisualPinball-Unity-AssetLibrary-Hdrp :
11
+ runs-on : ubuntu-latest
12
+ if : ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'workflow_run' }}
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ with :
16
+ path : VisualPinball.AssetLibrary
17
+ - name : Checkout VisualPinball.Unity.AssetLibrary.Hdrp
18
+ uses : actions/checkout@v2
19
+ with :
20
+ repository : VisualPinball/VisualPinball.Unity.AssetLibrary.Hdrp
21
+ path : VisualPinball.Unity.AssetLibrary.Hdrp
22
+ token : ${{ secrets.GH_PAT }}
23
+ - name : Update Dependent
24
+ id : updateDependent
25
+ uses :
VisualPinball/[email protected]
26
+ with :
27
+ source : VisualPinball.AssetLibrary
28
+ dependent : VisualPinball.Unity.AssetLibrary.Hdrp
29
+ - name : Commit
30
+ if : ${{ steps.updateDependent.outputs.isBump == 'true' }}
31
+ run : |
32
+ cd VisualPinball.Unity.AssetLibrary.Hdrp
33
+ git config user.name "github-actions"
34
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
35
+ git add package.json
36
+ git commit -m "chore(deps): Update ${{ steps.updateDependent.outputs.sourceName }} to ${{ steps.updateDependent.outputs.sourceVersion }}."
37
+ git push
Original file line number Diff line number Diff line change 18
18
if : ${{ steps.nextVersion.outputs.isBump == 'true' }}
19
19
run : |
20
20
npm version ${{ steps.nextVersion.outputs.nextVersion }} --no-git-tag-version
21
- - name : Publish
22
- run : |
23
- echo "//registry.visualpinball.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
24
- npm publish
25
- env :
26
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
27
21
- name : Commit
28
22
id : commit
29
23
if : ${{ steps.nextVersion.outputs.isBump == 'true' }}
46
40
commitish : ${{ steps.commit.outputs.commitish }}
47
41
env :
48
42
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
+ - name : Publish
44
+ run : |
45
+ echo "//registry.visualpinball.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
46
+ npm publish
47
+ env :
48
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
49
49
You can’t perform that action at this time.
0 commit comments