Skip to content

Commit

Permalink
PullRequest Workflows - Update CitySDK API documentation, Dependabot …
Browse files Browse the repository at this point in the history
…auto-merge (#336)
  • Loading branch information
ro3t authored Oct 19, 2023
1 parent c4c27cd commit da4e320
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 34 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/dependabot-auto-merge.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Update CitySDK API documentation
name: PullRequest Workflows - Update CitySDK API documentation, Dependabot auto-merge
on: pull_request

on: [pull_request]
permissions:
contents: write
pull-requests: write

jobs:
update-api:
Expand Down Expand Up @@ -32,3 +35,27 @@ jobs:
with:
commit_message: Update CitySDK API documentation
file_pattern: CitySDK_API.md
dependabot:
runs-on: ubuntu-latest
needs:
- brakeman-scan
- coffeelint
- erblint
- eslint
- rubocop
- stylelint
- test
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: ${{ ! contains(steps.metadata.outputs.dependency-names, 'bootstrap') }}
run: gh pr merge --auto --rebase --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit da4e320

Please sign in to comment.