Skip to content

Commit

Permalink
Merge pull request #39 from cybozu/fix-release-auth
Browse files Browse the repository at this point in the history
Set token and push to origin main
  • Loading branch information
sosukesuzuki authored Oct 1, 2023
2 parents f2308e5 + dc43726 commit 693dcd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- run: git fetch --force --tags
- uses: actions/setup-go@v4
with:
Expand Down
6 changes: 3 additions & 3 deletions es/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ git diff
git add .
git commit -m "Release $VERSION"

# print repository name for debugging
echo $GITHUB_REPOSITORY
# print branch for debugging
git branch

git push https://x-access-token:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git main
git push origin main

0 comments on commit 693dcd6

Please sign in to comment.