Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AjitPadhi-Microsoft committed Dec 4, 2024
1 parent 397af1b commit 116e0c9
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/build-docker-images.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Build Docker Images

on:
workflow_run:
workflows: [Tests]
types: [completed]
push:
branches:
- main
- dev
Expand All @@ -24,15 +22,14 @@ jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: logging
run: echo "${{github.event.workflow_run.GITHUB_REF}}"
- name: Extract branch name
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Print branch name
run: echo "${{ steps.extract_branch.outputs.branch }}"
run: |
echo "GITHUB_REF: ${{ github.ref}}"
echo "GITHUB_REF: ${{ github.ref_name}}
echo "GITHUB_EVENT_NAME: ${{ github.event_name}}"
echo "GITHUB_HEAD_REF: ${{ github.head_ref}}
echo "GITHUB_BASE_REF: ${{ github.base_ref}}
docker-build:
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
strategy:
matrix:
include:
Expand Down

0 comments on commit 116e0c9

Please sign in to comment.