Skip to content

Commit

Permalink
Correct secrets for GH preview user
Browse files Browse the repository at this point in the history
  • Loading branch information
chadlwilson committed Jun 7, 2024
1 parent 45e761c commit d0a12a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_and_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
bundler-cache: false # true would run bundle install
- name: Set up user in git config
env:
USER: "${{ secrets.GITHUB_WRITE_USER }}"
USER: "${{ secrets.GH_PREVIEW_WRITE_USER }}"
run: |
git config --global user.name "${USER}"
git config --global user.email "${USER}@github.com"
Expand All @@ -54,8 +54,8 @@ jobs:
git remote add preview https://${USER}:${TOKEN}@github.com/gocd/preview.go.cd.git
bundle exec rake publish --trace
env:
USER: "${{ secrets.GITHUB_WRITE_USER }}"
TOKEN: "${{ secrets.GITHUB_WRITE_USER_ACCESS_TOKEN }}"
USER: "${{ secrets.GH_PREVIEW_WRITE_USER }}"
TOKEN: "${{ secrets.GH_PREVIEW_WRITE_USER_ACCESS_TOKEN }}"
REMOTE_NAME: "preview"
ALLOW_DIRTY: true
BASE_URL: 'https://preview.gocd.org'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
bundler-cache: true # would run bundle install
- name: Set up user in git config
env:
USER: "${{ secrets.GITHUB_WRITE_USER }}"
USER: "${{ secrets.GH_PREVIEW_WRITE_USER }}"
run: |
git config --global user.name "${USER}"
git config --global user.email "${USER}@github.com"
Expand All @@ -38,5 +38,5 @@ jobs:
cd website && git config core.filemode false && git add -A .
git commit -m "Update website to ${PR_NO}" && git push
env:
USER: "${{ secrets.GITHUB_WRITE_USER }}"
TOKEN: "${{ secrets.GITHUB_WRITE_USER_ACCESS_TOKEN }}"
USER: "${{ secrets.GH_PREVIEW_WRITE_USER }}"
TOKEN: "${{ secrets.GH_PREVIEW_WRITE_USER_ACCESS_TOKEN }}"

0 comments on commit d0a12a1

Please sign in to comment.