Skip to content

Commit

Permalink
fix: Checkout correct branch
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed Jun 17, 2024
1 parent 866de65 commit eb90606
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,8 @@ jobs:
fail-fast: false
runs-on: ubuntu-20.04
steps:
- name: checkout
run: |
# can't use actions/checkout here as transferring the shallow clone fails when using upload-/download-artifact
git clone https://token:[email protected]/$GITHUB_REPOSITORY . --depth=1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
Expand Down
8 changes: 6 additions & 2 deletions hack/build-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ go run ./pip/generate
TAG=v0.0.0-$PYTHON_VERSION-$PYTHON_STANDALONE_VERSION-$BUILD_NUM

echo "checking out temporary branch"
git checkout $(git rev-parse HEAD)
git checkout --detach
echo "adding embedded files"
git add -f python/internal/data
git add -f pip/internal/data
echo "committing"
git commit -m "added python $PYTHON_VERSION from python-standalone $PYTHON_STANDALONE_VERSION"
echo "tagging"
git tag -f $TAG
git checkout -
echo "checking out old ref"
git checkout - || true

0 comments on commit eb90606

Please sign in to comment.