Skip to content

Commit d62dbe5

Browse files
committed
Fixing access token
1 parent 2528eb4 commit d62dbe5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
with:
126126
repository: manucodin/homebrew-swift-mock-generator
127127
path: homebrew-tap
128-
token: ${{ secrets.GITHUB_TOKEN }}
128+
fetch-depth: 0
129129

130130
- name: Update Homebrew formula
131131
run: |
@@ -157,6 +157,9 @@ jobs:
157157
git config user.name "github-actions[bot]"
158158
git config user.email "github-actions[bot]@users.noreply.github.com"
159159
160+
# Configure git to use the token for authentication
161+
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/manucodin/homebrew-swift-mock-generator.git
162+
160163
# Check if there are changes
161164
if git diff --quiet; then
162165
echo "No changes to commit"

0 commit comments

Comments
 (0)