Skip to content

Commit

Permalink
Update push-trigger.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Rakshith B <[email protected]>
  • Loading branch information
Rakshithb1 authored May 27, 2024
1 parent a96309b commit 95786d3
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/push-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,19 @@ jobs:
run: |
# Display mosip_master_container logs
docker logs -f mosip_master_container
- name: Setup branch and env
- name: Set environment variables
run: |
# Strip git ref prefix from version
echo "REPO_URL=${{ github.event.pull_request.head.repo.clone_url }}" >> $GITHUB_ENV
echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
if [ "${{ github.event_name }}" = "pull_request" ]; then
REPO_URL="${{ github.event.pull_request.head.repo.clone_url }}"
BRANCH="${{ github.event.pull_request.head.ref }}"
else
REPO_URL="https://github.com/${{ github.repository }}.git"
BRANCH="${{ github.ref_name }}"
fi
echo "REPO_URL=${REPO_URL}" >> $GITHUB_ENV
echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
- name: Run masterdata-loader
run: |
docker run -itd \
Expand Down

0 comments on commit 95786d3

Please sign in to comment.