From a5972f934fe6a05f0efd8ec08eeef6b7eca9366c Mon Sep 17 00:00:00 2001 From: OpenTF Team Date: Thu, 14 Sep 2023 11:59:14 +0200 Subject: [PATCH] Automatic commit --- .../workflows/artifact-release-trigger.yml | 12 ++++++++ .github/workflows/artifact-release.yml | 30 +++++++++++++++++++ .github/workflows/fork_sync.yml | 20 +++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 .github/workflows/artifact-release-trigger.yml create mode 100644 .github/workflows/artifact-release.yml create mode 100644 .github/workflows/fork_sync.yml diff --git a/.github/workflows/artifact-release-trigger.yml b/.github/workflows/artifact-release-trigger.yml new file mode 100644 index 00000000000..5f12560dfd3 --- /dev/null +++ b/.github/workflows/artifact-release-trigger.yml @@ -0,0 +1,12 @@ +name: Trigger Artifact Release + +on: + workflow_dispatch: + +permissions: + contents: read + actions: write + +jobs: + trigger: + uses: opentffoundation/scripts/.github/workflows/trigger.yml@main diff --git a/.github/workflows/artifact-release.yml b/.github/workflows/artifact-release.yml new file mode 100644 index 00000000000..74788b657cc --- /dev/null +++ b/.github/workflows/artifact-release.yml @@ -0,0 +1,30 @@ +name: Artifact Release + +on: + workflow_dispatch: + inputs: + tag: + description: "Release tag (v#.#.#)" + type: string + required: true + push: + tags: + - 'v*' + +permissions: + contents: write + +jobs: + release-dispatch: + if: inputs.tag != '' + uses: opentffoundation/scripts/.github/workflows/release.yml@main + with: + tag: ${{ inputs.tag }} + secrets: inherit + + release-push: + if: inputs.tag == '' + uses: opentffoundation/scripts/.github/workflows/release.yml@main + with: + tag: ${{ github.ref_name }} + secrets: inherit diff --git a/.github/workflows/fork_sync.yml b/.github/workflows/fork_sync.yml new file mode 100644 index 00000000000..5b986d29ecb --- /dev/null +++ b/.github/workflows/fork_sync.yml @@ -0,0 +1,20 @@ +name: Sync Fork + +on: + schedule: + - cron: '15 */4 * * *' # every hour + workflow_dispatch: # on button click + +jobs: + sync: + name: Sync + runs-on: ubuntu-latest + + steps: + - name: Sync the fork + uses: tgymnich/fork-sync@v1.8 + with: + token: ${{ secrets.GH_PAT }} + base: main + head: main + auto_merge: true