File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -318,3 +318,12 @@ jobs:
318318 prerelease : ${{ contains(needs.build.outputs.version, '-beta.') }}
319319 env :
320320 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
321+
322+ - name : Trigger MirrorChyanUploading
323+ if : ${{ github.repository_owner == 'OneDragon-Anything' }}
324+ shell : bash
325+ run : |
326+ gh workflow run --repo $GITHUB_REPOSITORY mirrorchyan-release.yml -f tag=${{ needs.build.outputs.tag }}
327+ gh workflow run --repo $GITHUB_REPOSITORY mirrorchyan-release_note.yml -f tag=${{ needs.build.outputs.tag }}
328+ env :
329+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : mirrorchyan release
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ tag :
7+ default : ' '
8+ required : false
9+ # release:
10+ # types: [released]
11+
12+ jobs :
13+ mirrorchyan :
14+ runs-on : macos-latest
15+ if : ${{ github.repository_owner == 'OneDragon-Anything' }}
16+ steps :
17+ - uses : MirrorChyan/uploading-action@v1
18+ with :
19+ filetype : latest-release
20+ filename : ' OneDragon-ScriptChainer-*.zip'
21+ mirrorchyan_rid : OneDragon-ScriptChainer
22+ tag : ${{ inputs.tag }}
23+
24+ owner : OneDragon-Anything
25+ repo : OneDragon-ScriptChainer
26+ github_token : ${{ secrets.GITHUB_TOKEN }}
27+ upload_token : ${{ secrets.MirrorChyanUploadToken }}
Original file line number Diff line number Diff line change 1+ name : mirrorchyan release_note
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ tag :
7+ default : ' '
8+ required : false
9+ release :
10+ types : [edited]
11+
12+ jobs :
13+ mirrorchyan :
14+ runs-on : macos-latest
15+ if : ${{ github.repository_owner == 'OneDragon-Anything' }}
16+
17+ steps :
18+ - id : uploading
19+ uses : MirrorChyan/release-note-action@v1
20+ with :
21+ mirrorchyan_rid : OneDragon-ScriptChainer
22+ version_name : ${{ inputs.tag }}
23+
24+ owner : OneDragon-Anything
25+ repo : OneDragon-ScriptChainer
26+ github_token : ${{ secrets.GITHUB_TOKEN }}
27+ upload_token : ${{ secrets.MirrorChyanUploadToken }}
You can’t perform that action at this time.
0 commit comments