Skip to content

Commit

Permalink
Update ci-oci-docker-install.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-antonyuk committed Aug 5, 2024
1 parent 80ae9b0 commit be1440e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/ci-oci-docker-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,8 @@ jobs:
- name: Determine Branch Name
id: set-branch-name
run: |
BRANCH_NAME=$(
case "${{ github.event_name }}" in
pull_request) echo "${{ github.event.pull_request.head.ref }}";;
workflow_dispatch) echo "${GITHUB_REF#refs/heads/}";;
push) echo "${GITHUB_REF#refs/heads/}";;
esac
)
BRANCH_NAME=$([ "${{ github.event_name }}" = "pull_request" ] && echo "${{ github.event.pull_request.head.ref }}" || echo "${GITHUB_REF#refs/heads/}")
echo "BRANCH_NAME=${BRANCH_NAME:-master}" >> $GITHUB_ENV
- name: Test OCI docker scripts
Expand Down

0 comments on commit be1440e

Please sign in to comment.