Skip to content

Commit

Permalink
ci: Update workflow conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Elegant996 committed Jul 30, 2024
1 parent 3b044d2 commit a9541fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/approve-merge-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}

- name: Auto-merge docker PRs
if: ${{ steps.dependabot.outputs.package-ecosystem == 'docker' &&
steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major'}}
if: ${{ steps.metadata.outputs.package-ecosystem == 'docker' &&
steps.metadata.outputs.update-type != 'version-update:semver-major'}}
run: |
gh pr merge --auto --squash "$PR_URL"
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
github-token: "${{ github.token }}"

- name: Approve a PR
if: ${{ steps.metadata.outputs.package-ecosystem != 'docker' }}
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
Expand Down

0 comments on commit a9541fa

Please sign in to comment.