-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,6 +88,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false # Do not store credentials as they will be configured manually | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
|
@@ -102,11 +103,17 @@ jobs: | |
- name: Update sushi-config.yaml with new version | ||
run: | | ||
yq eval '.version = "${{ needs.check-release.outputs.new_release_version }}"' -i sushi-config.yaml | ||
- name: Commit and push updated sushi-config.yaml | ||
- name: Configure git and push changes | ||
env: | ||
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} | ||
run: | | ||
git config user.name 'github-actions' | ||
git config user.email '[email protected]' | ||
# Inject the token directly into the remote URL securely | ||
git remote set-url origin https://x-access-token:${REPO_ACCESS_TOKEN}@www.github.com/${{ github.repository }}.git | ||
git add sushi-config.yaml | ||
git commit -m "Update sushi-config.yaml for release ${{ needs.check-release.outputs.new_release_version }}" | ||
git push | ||
|