Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #46 from galasa-dev/iss1950
Browse files Browse the repository at this point in the history
Add trigger for maven with GH CLI
  • Loading branch information
jadecarino authored Aug 1, 2024
2 parents a9479e3 + a840915 commit a51bdab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion .github/workflows/pr-build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: PR build

on:
workflow_dispatch:
pull_request:
branches: [main]

Expand Down

0 comments on commit a51bdab

Please sign in to comment.