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 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]