Skip to content

Commit

Permalink
Fixed commit token.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-waltermire committed Sep 28, 2023
1 parent 04895b5 commit e949390
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/workflow-generate-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,14 @@ jobs:
runs-on: ubuntu-20.04
env:
BUILD_PATH: ./build
permissions:
contents: write
steps:
# use this for builds triggered from the UI and from workflows on protected branches
- id: checkout_latest_workflow
name: Checkout Latest
if: (github.event_name == 'workflow_dispatch' && github.event.inputs.commit_resources == 'true') || (github.event_name == 'push' && inputs.commit_resources == true)
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
with:
token: ${{ secrets.GITHUB_TOKEN }}
persist-credentials: false
submodules: recursive
# use this for overything else (i.e., pull requests) where publication is not needed
- name: Checkout Latest
Expand Down Expand Up @@ -152,11 +150,10 @@ jobs:
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847
if: github.ref_name == 'main' && ((github.event_name == 'push' && inputs.commit_resources == true) || (github.event_name == 'workflow_dispatch' && github.event.inputs.commit_resources == 'true'))
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
personal_token: ${{ secrets.COMMIT_TOKEN }}
enable_jekyll: false
publish_dir: ./website/public
publish_branch: nist-pages
commit_user_name: GitHub Actions Bot
commit_user_email: [email protected]
commit_author: GitHub Actions Bot <[email protected]>
user_name: GitHub Actions Bot
user_email: [email protected]
commit_message: Deploying website [ci deploy skip]

0 comments on commit e949390

Please sign in to comment.