File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments