From d9c5519614d5a21383294ba2bfe9c7302e32f83e Mon Sep 17 00:00:00 2001 From: Benjamin Gandon Date: Thu, 5 Dec 2024 03:23:23 +0100 Subject: [PATCH] Add GitHub actions for immediate Concourse triggering --- .github/workflows/trigger-git-resource-check.yml | 14 ++++++++++++++ .github/workflows/trigger-pr-resource-check.yml | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/trigger-git-resource-check.yml create mode 100644 .github/workflows/trigger-pr-resource-check.yml diff --git a/.github/workflows/trigger-git-resource-check.yml b/.github/workflows/trigger-git-resource-check.yml new file mode 100644 index 0000000..48ba3fd --- /dev/null +++ b/.github/workflows/trigger-git-resource-check.yml @@ -0,0 +1,14 @@ +name: Trigger Concourse 'git' resource +on: [ push, workflow_dispatch ] +jobs: + trigger-resource-check: + runs-on: ubuntu-latest + steps: + - name: Trigger resource check + uses: gstackio/trigger-concourse-resource-check-action@v1 + with: + concourse-url: https://ci.gstack.io + concourse-team: gk-plat-devs + concourse-pipeline: hashicorp-release-resource + concourse-resource: git + concourse-webhook-token: ${{ secrets.GK_CONCOURSE_WEBHOOK_TOKEN }} diff --git a/.github/workflows/trigger-pr-resource-check.yml b/.github/workflows/trigger-pr-resource-check.yml new file mode 100644 index 0000000..f04927d --- /dev/null +++ b/.github/workflows/trigger-pr-resource-check.yml @@ -0,0 +1,14 @@ +name: Trigger Concourse pull-request resource +on: [ push, pull_request, workflow_dispatch ] +jobs: + trigger-resource-check: + runs-on: ubuntu-latest + steps: + - name: Trigger resource check + uses: gstackio/trigger-concourse-resource-check-action@v1 + with: + concourse-url: https://ci.gstack.io + concourse-team: gk-plat-devs + concourse-pipeline: hashicorp-release-resource + concourse-resource: git-pull-requests + concourse-webhook-token: ${{ secrets.GK_CONCOURSE_WEBHOOK_TOKEN }}