Skip to content

Commit

Permalink
ci(github): add workflow dependabot.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Aug 18, 2023
1 parent 1bcf351 commit ce27715
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: build
on: [push, pull_request]

permissions:
pull-requests: write
contents: write

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -13,13 +17,11 @@ jobs:

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
tools: composer:v2

- name: Install dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: Generate code
- name: Build library
run: composer build

- name: Check Git working tree
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: dependabot
on: pull_request_target

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true

- name: Setup PHP
uses: shivammathur/setup-php@v2

- name: Install dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: Build library
run: composer build

- name: Git commit and push
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'feat: generate lib from braze-specification'
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
coverage: pcov

- name: Install dependencies
Expand Down

0 comments on commit ce27715

Please sign in to comment.