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

Add trigger for maven with GH CLI #46

Merged
merged 2 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading