From acf6062b9eaa92496b6ad3c1cf1e8242fd877239 Mon Sep 17 00:00:00 2001 From: tomasmik Date: Tue, 3 Oct 2023 17:20:08 +0300 Subject: [PATCH] Apply GitHub workflow changes --- .../workflows/artifact-release-trigger.yml | 12 ++++++++ .github/workflows/artifact-release.yml | 30 +++++++++++++++++++ .github/workflows/fork_sync.yml | 11 +++++++ 3 files changed, 53 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 0000000000..5f12560dfd --- /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 0000000000..74788b657c --- /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 0000000000..8be9d48cd7 --- /dev/null +++ b/.github/workflows/fork_sync.yml @@ -0,0 +1,11 @@ +name: Sync Fork + +on: + schedule: + - cron: '15 */4 * * *' # every 4 hours + workflow_dispatch: # on button click + +jobs: + sync: + uses: opentffoundation/scripts/.github/workflows/sync.yml@main + secrets: inherit