Skip to content

Commit

Permalink
chore: Synced local '.github/workflows/dependabot.yml' with remote '.…
Browse files Browse the repository at this point in the history
…github/workflows/dependabot.yml'
  • Loading branch information
googlemaps-bot committed May 13, 2024
1 parent 09fa904 commit 77b0a60
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

## Automatically approves and merges dependabot PRs if tests pass.

name: Dependabot
on: pull_request

Expand All @@ -23,18 +21,15 @@ permissions:
jobs:
test:
uses: ./.github/workflows/test.yml

dependabot:
needs: test
if: ${{ github.actor == 'dependabot[bot]' }}

runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.SYNCED_GITHUB_TOKEN_REPO}}
steps:
- name: Approve
- name: approve
run: gh pr review --approve "$PR_URL"

- name: Merge
- name: merge
run: gh pr merge --auto --squash --delete-branch "$PR_URL"

0 comments on commit 77b0a60

Please sign in to comment.