Skip to content

Commit

Permalink
(fix): updated build trigger to listen to pre-release Job run
Browse files Browse the repository at this point in the history
  • Loading branch information
Murithijoshua authored Jan 16, 2024
1 parent 3488ba4 commit fa5db59
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,20 +111,6 @@ jobs:
mkdir -p dist/${{ env.ESM_NAME }}/${{ env.TIMESTAMP }}_${{ github.sha }}
mv packages/${{ env.DIR_NAME }}/dist/*.* dist/${{ env.ESM_NAME }}/${{ env.TIMESTAMP }}_${{ github.sha }}/
ls dist/${{ env.ESM_NAME }}/${{ env.TIMESTAMP }}_${{ github.sha }}/
Trigger_server_build:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Invoke workflow without inputs. Don't wait for result
uses: aurelien-baudet/workflow-dispatch@v2
with:
workflow: KenyaEMR CI
repo: palladiumkenya/openmrs-config-kenyaemr
token: ${{ secrets.PERSONAL_TOKENS }}
wait-for-completion: false
pre_release:
runs-on: ubuntu-latest

Expand Down Expand Up @@ -172,7 +158,20 @@ jobs:
run: |
ls -alh
Trigger_server_build:
runs-on: ubuntu-latest
needs: pre_release
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Invoke workflow without inputs. Don't wait for result
uses: aurelien-baudet/workflow-dispatch@v2
with:
workflow: KenyaEMR CI
repo: palladiumkenya/openmrs-config-kenyaemr
token: ${{ secrets.PERSONAL_TOKENS }}
wait-for-completion: false
release:
runs-on: ubuntu-latest

Expand Down

0 comments on commit fa5db59

Please sign in to comment.