From f89a81fade2484ecfd24e8a69fbd9bce023bfe78 Mon Sep 17 00:00:00 2001 From: divyansh42 Date: Fri, 18 Dec 2020 19:34:40 +0530 Subject: [PATCH] Cleanup Workflow Signed-off-by: divyansh42 --- .github/workflows/verify-push.yaml | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/.github/workflows/verify-push.yaml b/.github/workflows/verify-push.yaml index 630f577..90dd481 100644 --- a/.github/workflows/verify-push.yaml +++ b/.github/workflows/verify-push.yaml @@ -13,36 +13,15 @@ jobs: name: Push image to Quay.io runs-on: ubuntu-latest steps: - # Fetch name of the Forked Repository with Branch - # if workflow is triggered from pull request - - name: Fetch PR head repo and branch name - if: github.event_name == 'pull_request' - run: | - HEAD_REPO_NAME=$(jq -r '.pull_request.head.repo.full_name' "$GITHUB_EVENT_PATH") - echo "PR head repo: $HEAD_REPO_NAME" - echo "repo=$HEAD_REPO_NAME" >> $GITHUB_ENV - echo "branch=$GITHUB_HEAD_REF" >> $GITHUB_ENV - - # Extract repository name with branch - - name: Fetch Repository name with branch - if: github.event_name != 'pull_request' - shell: bash - run: | - echo "repo=$GITHUB_REPOSITORY" >> $GITHUB_ENV - echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV - # Checkout push-to-registry action github repository - name: Checkout Push to Registry action uses: actions/checkout@v2 - with: - repository: ${{ env.repo }} - ref: ${{ env.branch }} # Pull hello-world image to push in next step - name: Pull Hello world image run: docker pull ${{ env.IMAGE_NAME }} - # Push the image to image registry + # Push the image to image registry - name: Push To Quay uses: ./ with: