Skip to content

Commit

Permalink
debug and fix
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Jan 12, 2024
1 parent 1e73bf9 commit 962032c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,15 @@ jobs:
shell: /usr/bin/bash {0}
run: |
ISSUE_COMMENTS=$(gh api -H "Accept: application/vnd.github+json" /repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments | jq ".[] | .body")
if echo "${ISSUE_COMMENT_BODIES}" | grep "@github-actions disable-cache"; then
if echo "${ISSUE_COMMENTS}" | grep "@github-actions disable-cache"; then
echo "DISABLE_CACHE=true" >> $GITHUB_OUTPUT
else
echo "DISABLE_CACHE=false" >> $GITHUB_OUTPUT
fi
cat $GITHUB_OUTPUT
- name: Restore from cache
env:
NO_CACHE: ${{ (steps.cache.outputs.no-cache || (steps.cache.outputs.deleted_count > 20)) || (steps.issue_comment.outputs.DISABLE_CACHE == 'true') }}
NO_CACHE: ${{ (steps.cache.outputs.no-cache || (steps.cache.outputs.deleted_count > 20)) || steps.issue_comment.outputs.DISABLE_CACHE }}
BOOTSTRAP: ${{ steps.cache.outputs.bootstrap }}
CONFIGURE: ${{ steps.cache.outputs.configure }}
EVENT: ${{ github.event_name }}
Expand Down

0 comments on commit 962032c

Please sign in to comment.