Closed machsix closed 5 months ago
logs_23041637507.zip Here is the workflow log
https://github.com/actions/cache/issues/1384 https://github.com/actions/cache/issues/1383 It seems it's related to Github server
The server is back and the issue is gone.
The server is back and the issue is gone.
I am still the getting the same error. https://github.com/actions/cache/issues/1383
I have the same error on a forked project. The upstream repo works tho.. Why is that, what can we do?
I believe it's the Github's server issue. As a workaround, I defined the following job in my workflow so that if Github's cache is not reachable, cache-export and cache-from are kept as empty for build
set-cache:
runs-on: ubuntu-latest
outputs:
cache-from: ${{ steps.final.outputs.cache-from }}
cache-to: ${{ steps.final.outputs.cache-to }}
steps:
- name: Initial check
id: check-cache
uses: actions/cache@v4
with:
path: /tmp/check-cache
key: check-cache
- name: Create dummy cache
if: steps.check-cache.outputs.cache-hit != 'true'
run: cat /proc/version > /tmp/check-cache
- name: Save cache if necessary
if: steps.check-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: /tmp/check-cache
key: check-cache
- name: Second check
if: steps.check-cache.outputs.cache-hit != 'true'
id: check-cache-again
uses: actions/cache@v4
with:
path: /tmp/check-cache
key: check-cache
- name: Finalize cache status
id: final
run: |
if [ "${{ steps.check-cache.outputs.cache-hit }}" = "true" ] || [ "${{ steps.check-cache-again.outputs.cache-hit }}" = "true" ]; then
echo "cache-from=type=gha,scope=docker-release" >> $GITHUB_OUTPUT
echo "cache-to=type=gha,mode=max,scope=docker-release" >> $GITHUB_OUTPUT
else
echo "cache-from=" >> $GITHUB_OUTPUT
echo "cache-to=" >> $GITHUB_OUTPUT
fi
rm /tmp/check-cache
Contributing guidelines
I've found a bug, and:
Description
I had an old repo at https://github.com/machsix/RSShub. I renamed it to https://github.com/machsix/RSShub-upstream and created a new one at https://github.com/machsix/RSShub. The github action starts to fail with error
Expected behaviour
The cache is exported
Actual behaviour
The cache is failed to be exported
Repository URL
https://github.com/machsix/RSShub
Workflow run URL
https://github.com/machsix/RSShub/actions/runs/8794907386/job/24135111195
YAML workflow
Workflow logs
9_Build and push Docker image (ordinary version).txt
BuildKit logs
Additional info
N/A