diff --git a/.github/workflows/clean-pr-documentation.yml b/.github/workflows/clean-pr-documentation.yml index a8fa8c572b..e8d31136d2 100644 --- a/.github/workflows/clean-pr-documentation.yml +++ b/.github/workflows/clean-pr-documentation.yml @@ -4,8 +4,11 @@ on: pull_request: types: [closed] branches: - - dev - master + pull_request_target: + types: [closed] + branches: + - dev concurrency: # New commit on branch cancels running workflows of the same branch diff --git a/.github/workflows/cleanup-cache-pr.yml b/.github/workflows/cleanup-cache-pr.yml index ca1e784e21..e479c69c66 100644 --- a/.github/workflows/cleanup-cache-pr.yml +++ b/.github/workflows/cleanup-cache-pr.yml @@ -5,6 +5,9 @@ on: pull_request: types: - closed + pull_request_target: + types: + - closed jobs: cleanup: @@ -16,14 +19,14 @@ jobs: - name: Cleanup run: | gh extension install actions/gh-actions-cache - + REPO=${{ github.repository }} BRANCH="refs/pull/${{ github.event.pull_request.number }}/merge" echo "Fetching list of cache key" cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 ) - ## Setting this to not fail the workflow while deleting cache keys. + ## Setting this to not fail the workflow while deleting cache keys. set +e echo "Deleting caches..." for cacheKey in $cacheKeysForPR