Skip to content

Commit 266870c

Browse files
authored
Merge branch 'master' into fix-xls-exports
2 parents 14ddc95 + 2a01b91 commit 266870c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/citest.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,19 @@ jobs:
8989
timeout -v 90m sudo su naemon -c 'eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) && THRUK_TEST_MODULES_CACHE=${{ env.THRUK_TEST_MODULES_CACHE }} THRUK_CRITIC_CACHE_FILE=${{ env.THRUK_CRITIC_CACHE_FILE }} HARNESS_TIMER=1 stdbuf -o0 -e0 make citest'
9090
9191
- name: remove cache
92-
if: ${{ github.event_name != 'pull_request' }}
92+
if: ${{ github.event_name == 'push' && github.repository == 'sni/thruk' && github.ref == 'refs/heads/main' }}
9393
run: |
94+
echo "event_name: ${{ github.event_name }}"
95+
echo "ref: ${{ github.ref }}"
96+
echo "base_ref: ${{ github.base_ref }}"
97+
echo "head_ref: ${{ github.head_ref }}"
9498
gh cache delete --all
9599
ls -la ${{ env.THRUK_TEST_MODULES_CACHE }} ${{ env.THRUK_CRITIC_CACHE_FILE }} || :
96100
env:
97101
GH_TOKEN: ${{ github.token }}
98102

99103
- name: save updated cache back
100-
if: ${{ github.event_name != 'pull_request' }}
104+
if: ${{ github.event_name == 'push' && github.repository == 'sni/thruk' && github.ref == 'refs/heads/main' }}
101105
id: thruk-test-cache-save
102106
uses: actions/cache/save@v5
103107
with:

0 commit comments

Comments
 (0)