From 822f761f68a86fe4dade37068ee3a6e8b17590ab Mon Sep 17 00:00:00 2001 From: Jade Carino Date: Wed, 31 Jul 2024 16:18:34 +0100 Subject: [PATCH 1/2] Add trigger for maven with GH CLI Signed-off-by: Jade Carino --- .github/workflows/build.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7a9310f..f5aa667 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -89,3 +89,15 @@ jobs: ARGOCD_AUTH_TOKEN: ${{ secrets.ARGOCD_TOKEN }} run: | docker run --env ARGOCD_AUTH_TOKEN=${{ env.ARGOCD_AUTH_TOKEN }} --rm -v ${{ github.workspace }}:/var/workspace ghcr.io/galasa-dev/argocdcli:main app wait gh-maven-repos --resource apps:Deployment:gradle-gh --health --server argocd.galasa.dev + + trigger-maven-workflow: + name: Trigger Maven workflow + runs-on: ubuntu-latest + needs: build-gradle + + steps: + - name: Trigger Maven workflow dispatch event with GitHub CLI + env: + GH_TOKEN: ${{ secrets.GALASA_TEAM_GITHUB_TOKEN }} + run: | + gh workflow run build.yaml --repo https://github.com/galasa-dev/maven \ No newline at end of file From a840915a42f5105c02b5b8ad285bf3fa5c1b9716 Mon Sep 17 00:00:00 2001 From: Jade Carino Date: Thu, 1 Aug 2024 11:08:01 +0100 Subject: [PATCH 2/2] Remove workflow dispatch from PR Signed-off-by: Jade Carino --- .github/workflows/pr-build.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pr-build.yaml b/.github/workflows/pr-build.yaml index 1145644..c1efe32 100644 --- a/.github/workflows/pr-build.yaml +++ b/.github/workflows/pr-build.yaml @@ -1,7 +1,6 @@ name: PR build on: - workflow_dispatch: pull_request: branches: [main]