Skip to content

Commit

Permalink
workflows/vendor-gems: trial using GitHub App token
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Nov 22, 2023
1 parent d7a0f29 commit a17c285
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/vendor-gems.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,18 @@ jobs:
-m "Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow."
fi
- uses: actions/create-github-app-token@v1
id: app-token
if: github.event_name == 'pull_request_target' || github.event_name == 'workflow_dispatch'
with:
app-id: ${{ vars.BREW_COMMIT_APP_ID }}

Check failure on line 158 in .github/workflows/vendor-gems.yml

View workflow job for this annotation

GitHub Actions / workflow_syntax

no configuration variable is allowed since the variables list is empty in actionlint.yaml. you may forget adding the variable "brew_commit_app_id" to the list
private-key: ${{ secrets.BREW_COMMIT_APP_KEY }}

- name: Push to pull request
if: github.event_name == 'pull_request_target' || github.event_name == 'workflow_dispatch'
uses: Homebrew/actions/git-try-push@master
with:
token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}
token: ${{ steps.app-token.outputs.token }}
directory: ${{ steps.set-up-homebrew.outputs.repository-path }}
branch: ${{ steps.checkout.outputs.branch }}
force: true

0 comments on commit a17c285

Please sign in to comment.