Skip to content

Commit

Permalink
feat: bot commits now triggers eslint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Jun 30, 2024
1 parent 5e9bda3 commit ac49b9c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: eslint check

on: [push, pull_request, workflow_dispatch]
on: [push, pull_request, workflow_dispatch, workflow_call]

jobs:
check:
Expand All @@ -9,7 +9,12 @@ jobs:
os: [ubuntu, macos, windows]
runs-on: ${{ matrix.os }}-latest
steps:
- name: Get current branch name
if: github.event_name == 'workflow_call'
run: branch=$(git rev-parse --abbrev-ref HEAD}) >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_call' && env.branch || github.sha }}
- uses: oven-sh/setup-bun@v1
- name: Install modules
run: bun install
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/taze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- cron: 0 0 * * *

jobs:
npm:
update:
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -28,3 +28,6 @@ jobs:
git add package.json
git commit -m 'chore(deps): update dependencies'
git push
lint:
needs: update
uses: ./.github/workflows/eslint.yml

0 comments on commit ac49b9c

Please sign in to comment.