Skip to content

Commit 34ed95a

Browse files
authored
Maybe fix release action issue (#4612)
I'm running into a weird issue in the release action when pushing the files. I'm hoping these changes might fix it. Not really sure.
1 parent 9c68080 commit 34ed95a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ jobs:
4747
# Clone the repo with our PAT and delete old files
4848
- name: Clone spec tests repo
4949
run: |
50-
git clone https://x-access-token:${{ secrets.CONSENSUS_SPEC_TESTS_PAT }}@github.com/ethereum/consensus-spec-tests.git --depth=1
50+
rm -rf consensus-spec-tests
51+
git clone https://x-access-token:${{ secrets.CONSENSUS_SPEC_TESTS_PAT }}@github.com/ethereum/consensus-spec-tests.git --branch=master --single-branch --depth=1 --no-tags
5152
cd consensus-spec-tests
5253
rm -rf configs presets tests
5354
@@ -79,10 +80,10 @@ jobs:
7980
cd consensus-spec-tests
8081
git config user.name "github-actions"
8182
git config user.email "[email protected]"
82-
git add .
83+
git add -A
8384
if ! git diff --cached --quiet; then
8485
git commit -m "release ${{ github.ref_name }} tests"
85-
git push
86+
git push origin HEAD:refs/heads/master
8687
else
8788
echo "No changes to commit"
8889
fi

0 commit comments

Comments
 (0)