We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3188221 commit af696f7Copy full SHA for af696f7
.github/actions/gh-cache/save/action.yml
@@ -45,7 +45,7 @@ runs:
45
token: ${{ inputs.token }}
46
fetch-depth: 0
47
path: .gh-cache-${{ github.run_id }}
48
- show-progress: 'false'
+ show-progress: "false"
49
50
- name: Switch to gh-cache branch (or create orphan)
51
shell: bash
@@ -79,6 +79,10 @@ runs:
79
git commit -m "$(printf 'Save artifact: %s' "${{ inputs.path }}")" \
80
&& echo "Committed '${{ inputs.path }}' to 'gh-cache' branch" \
81
|| echo "No changes to commit"
82
+ if git ls-remote --exit-code --heads origin gh-cache >/dev/null; then
83
+ git fetch origin gh-cache
84
+ git rebase origin/gh-cache
85
+ fi
86
git push origin gh-cache
87
else
88
echo "'${{ inputs.path }}' does not exist"
0 commit comments