Skip to content

Commit

Permalink
fix: better handling of separate tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Nov 29, 2024
1 parent 2bf55b2 commit b38f6d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/sync-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ jobs:
- uses: actions/setup-go@v4
- run: go run main.go
env:
GH_TOKEN: ${{ secrets.SEAUBOT_ECSACT_DEV_GH_TOKEN }}
GIT_CLONE_GH_TOKEN: ${{ secrets.SEAUBOT_ECSACT_DEV_GH_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func main() {
repo_clone_dir := fmt.Sprintf("./clones/%s", repo_name)

var clone_url string
gh_token := os.Getenv("GH_TOKEN")
gh_token := os.Getenv("GIT_CLONE_GH_TOKEN")
if gh_token != "" {
clone_url = fmt.Sprintf("https://%s:%[email protected]/ecsact-dev/%s.git", c.AuthorLogin, gh_token, repo_name)
} else {
Expand Down

0 comments on commit b38f6d1

Please sign in to comment.