Skip to content

Commit

Permalink
Automatically approve my own PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
Pr0methean committed Apr 16, 2024
1 parent 61afe4d commit db37088
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,23 @@ env:

jobs:
build_and_test:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
rust: [stable, '1.70', nightly]

rustalias: [stable, nightly, msrv]
include:
- rustalias: stable
rust: stable
- rustalias: msrv
rust: '1.70'
- rustalias: nightly
rust: nightly
name: 'Build and test: ${{ matrix.os }}, ${{ matrix.rustalias }}'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master

- name: Install ${{ matrix.rust }}
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/dependabot_automation.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Dependabot auto-approve and auto-merge
name: Auto-approve and auto-merge owner-written and Dependabot PRs
on: pull_request

permissions:
Expand All @@ -8,10 +8,11 @@ permissions:
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'Pr0methean' }}
steps:
- name: Dependabot metadata
id: metadata
if: ${{ github.actor == 'dependabot[bot]' }}
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down

0 comments on commit db37088

Please sign in to comment.