Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
snapsnapturtle committed May 12, 2023
1 parent e584a20 commit 8d66a6a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Build

on:
workflow_call:

jobs:
build:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
26 changes: 21 additions & 5 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
name: Pull request
name: Pull requests

on: pull_request

jobs:
build:
uses: ./.github/workflows/build.yml
secrets: inherit

build:
uses: ./.github/workflows/build.yml
secrets: inherit
auto-merge:
if: ${{ github.actor == 'dependabot[bot]' }}
needs: build
runs-on: ubuntu-latest
steps:
- name: Fetch dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.1.1
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: Merge non-major dependency updates
if: ${{steps.metadata.outputs.update-type != 'version-update:semver-major'}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 8d66a6a

Please sign in to comment.