Skip to content

Commit

Permalink
More debug
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Jan 12, 2024
1 parent be68770 commit d396a30
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,22 +112,25 @@ jobs:
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_COMMENTS}" | grep "@github-actions disable-cache"; then
echo "DISABLE_CACHE=1" >> $GITHUB_OUTPUT
echo "DISABLE_CACHE=true" >> $GITHUB_OUTPUT
else
echo "DISABLE_CACHE=0" >> $GITHUB_OUTPUT
echo "DISABLE_CACHE=false" >> $GITHUB_OUTPUT
fi
cat $GITHUB_OUTPUT
- name: Restore from cache
env:
NO_CACHE: ${{ (steps.cache.outputs.no-cache || steps.issue_comment.outputs.DISABLE_CACHE) || (steps.cache.outputs.deleted_count > 20) }}
NO_CACHE: ${{ (steps.cache.outputs.no-cache == 'true' || steps.issue_comment.outputs.DISABLE_CACHE == 'true') || (steps.cache.outputs.deleted_count > 20) }}
DISABLE_CACHE: ${{ steps.issue_comment.outputs.DISABLE_CACHE }}
BOOTSTRAP: ${{ steps.cache.outputs.bootstrap }}
CONFIGURE: ${{ steps.cache.outputs.configure }}
EVENT: ${{ github.event_name }}
DELETED: ${{ steps.cache.outputs.deleted_files }}
run: |
echo "${{ steps.issue_comment.outputs.DISABLE_CACHE }}"
echo "${{ toJson(steps.issue_comment.outputs.DISABLE_CACHE) }}"
echo "${{ toJson(steps.issue_comment.outputs) }}"
echo "${{ toJson(steps.cache.outputs) }}"
echo "${{ toJson(steps.cache.outputs.no-cache || steps.issue_comment.outputs.DISABLE_CACHE) }}"
echo "${{ toJson(steps.cache.outputs.no-cache) }}"
echo "${{ steps.cache.outputs.no-cache || steps.issue_comment.outputs.DISABLE_CACHE }}"
echo "${{ steps.cache.outputs.deleted_count > 20 }}"
.github/scripts/restore-from-prebuilt.sh "`pwd`" \
Expand Down

0 comments on commit d396a30

Please sign in to comment.