Skip to content

Commit

Permalink
ci: simpler syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
johngeorgewright committed Sep 11, 2024
1 parent f67d8b6 commit 086aecb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/bots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ jobs:
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Approve the PR
if: steps.metadata.outputs.update-type != 'version-update:semver-major'
if: >-
steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
steps.metadata.outputs.update-type == 'version-update:semver-minor'
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | # shell
gh pr review "${{ github.event.pull_request.html_url }}" \
--approve \
Expand Down

0 comments on commit 086aecb

Please sign in to comment.