From 411dd8373d7a709b27df16ee397a73485288640f Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Thu, 9 Jan 2020 13:47:36 -0600 Subject: [PATCH 1/2] try this --- .github/workflows/cleanup-DEV.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cleanup-DEV.yml b/.github/workflows/cleanup-DEV.yml index 8e70025c..3473d190 100644 --- a/.github/workflows/cleanup-DEV.yml +++ b/.github/workflows/cleanup-DEV.yml @@ -35,8 +35,9 @@ jobs: # Checkout the code base # ########################## - name: Checkout Code - uses: actions/checkout@v2 - run: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* + - uses: actions/checkout@v2 + run: | + git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* ###################### # Run Removal script # From bca60c86ea2d53daf09552b2607cb985c66483d8 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Thu, 9 Jan 2020 13:50:54 -0600 Subject: [PATCH 2/2] this? --- .github/workflows/cleanup-DEV.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cleanup-DEV.yml b/.github/workflows/cleanup-DEV.yml index 3473d190..37311e3d 100644 --- a/.github/workflows/cleanup-DEV.yml +++ b/.github/workflows/cleanup-DEV.yml @@ -35,9 +35,9 @@ jobs: # Checkout the code base # ########################## - name: Checkout Code - - uses: actions/checkout@v2 - run: | - git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* + uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.sha }} ###################### # Run Removal script #