Skip to content

Commit

Permalink
chore: bumpgen workflow fixes (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
zlalvani authored May 17, 2024
1 parent 46dd352 commit 57c67fd
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/bumpgen-core.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
name: "Bumpgen (core)"
name: "Bumpgen"

on:
pull_request:
paths:
- "packages/bumpgen-core/**"
types:
- opened
- synchronize
- labeled
- unlabeled

permissions:
pull-requests: read
contents: write

jobs:
main:
name: Run Bumpgen
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' || contains( github.event.pull_request.labels.*.name, 'run bumpgen') }}
if: ${{ (github.event.pull_request.user.login == 'dependabot[bot]' || contains( github.event.pull_request.labels.*.name, 'run bumpgen')) && github.event.pull_request.commits[0].author.username != 'github-actions[bot]'}}
steps:
- uses: actions/checkout@v4
- name: Setup
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/bumpgen-test-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Bumpgen"

on:
pull_request:
paths:
- "packages/test-project/**"
types:
- opened
- synchronize
- labeled
- unlabeled

permissions:
pull-requests: read
contents: write

jobs:
main:
name: Run Bumpgen
runs-on: ubuntu-latest
if: ${{ (github.event.pull_request.user.login == 'dependabot[bot]' || contains( github.event.pull_request.labels.*.name, 'run bumpgen')) && github.event.pull_request.commits[0].author.username != 'github-actions[bot]'}}
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./tooling/github/setup
- name: Bumpgen
uses: ./
with:
path: "./packages/test-project/"
llm_key: ${{ secrets.LLM_API_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 57c67fd

Please sign in to comment.