File tree Expand file tree Collapse file tree 4 files changed +73
-0
lines changed Expand file tree Collapse file tree 4 files changed +73
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Trigger Artifact Release
2+
3+ on :
4+ workflow_dispatch :
5+
6+ permissions :
7+ contents : read
8+ actions : write
9+
10+ jobs :
11+ trigger :
12+ uses : opentofu/scripts/.github/workflows/trigger.yml@main
Original file line number Diff line number Diff line change 1+ name : Artifact Release
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ tag :
7+ description : " Release tag (v#.#.#)"
8+ type : string
9+ required : true
10+
11+ permissions :
12+ contents : write
13+
14+ jobs :
15+ release-dispatch :
16+ if : inputs.tag != ''
17+ uses : opentofu/scripts/.github/workflows/release.yml@main
18+ with :
19+ tag : ${{ inputs.tag }}
20+ secrets :
21+ GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
22+ GH_PAT : ${{ secrets.GH_PAT }}
23+ GORELEASER_KEY : ${{ secrets.GORELEASER_KEY }}
24+
25+ release-push :
26+ if : inputs.tag == ''
27+ uses : opentofu/scripts/.github/workflows/release.yml@main
28+ with :
29+ tag : ${{ github.ref_name }}
30+ secrets :
31+ GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
32+ GH_PAT : ${{ secrets.GH_PAT }}
33+ GORELEASER_KEY : ${{ secrets.GORELEASER_KEY }}
Original file line number Diff line number Diff line change 1+ name : Sync Fork
2+
3+ on :
4+ schedule :
5+ - cron : ' 15 */4 * * *' # every 4 hours
6+ workflow_dispatch : # on button click
7+
8+ jobs :
9+ sync :
10+ uses : opentofu/scripts/.github/workflows/sync.yml@main
11+ secrets : inherit
Original file line number Diff line number Diff line change 1+ name : Artifacts Resign
2+
3+ on :
4+ workflow_dispatch :
5+
6+ permissions :
7+ contents : write
8+
9+ jobs :
10+ resign :
11+ uses : opentofu/scripts/.github/workflows/sign.yml@main
12+ with :
13+ owner : ${{ github.repository_owner }}
14+ repo : ${{ github.event.repository.name }}
15+ secrets :
16+ GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
17+ GH_PAT : ${{ secrets.GH_PAT }}
You can’t perform that action at this time.
0 commit comments