Skip to content

Commit

Permalink
Set token at checkout step
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark committed Dec 11, 2023
1 parent 470a420 commit 27557ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout the code
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_BOT_PUSH }}
- name: Set up Node.js
uses: actions/setup-node@v1
with:
Expand All @@ -36,4 +39,3 @@ jobs:
with:
file_pattern: ui/js/blocks/pods-blocks-api.min.* ui/js/dfv/pods-dfv.min.* ui/styles/dist/*.css
commit_message: Auto rebuild assets
token: ${{ secrets.GH_BOT_PUSH }}
3 changes: 2 additions & 1 deletion .github/workflows/wporg-update-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
echo minimum_mysql_version: ${{ github.event.inputs.minimum_mysql_version }}
- name: Checkout the code
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_BOT_PUSH }}
- name: Check the version number from package.json
shell: bash
run: echo "PLUGIN_VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV
Expand All @@ -62,7 +64,6 @@ jobs:
with:
file_pattern: ${{ env.WPORG_PLUGIN_FILE }} readme.txt package.json
commit_message: Update wporg version(s)
token: ${{ secrets.GH_BOT_PUSH }}
- name: "Run if changes have been detected"
if: steps.auto-commit-action.outputs.changes_detected == 'true'
run: echo "Changes!"
Expand Down

0 comments on commit 27557ac

Please sign in to comment.