Skip to content

Commit 9baa2f0

Browse files
author
OpenTofu Core Development Team
committed
Apply GitHub workflow changes
1 parent bf070d4 commit 9baa2f0

File tree

4 files changed

+73
-0
lines changed

4 files changed

+73
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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
+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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 }}

.github/workflows/fork_sync.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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

.github/workflows/resign.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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 }}

0 commit comments

Comments
 (0)