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 0aacfe6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 3 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 @@ -10,6 +10,8 @@ jobs:
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v4
- name: Pull changes
run: git pull
- uses: oven-sh/setup-bun@v1
- name: Install modules
run: bun install
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/taze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ on:
- cron: 0 0 * * *

jobs:
npm:
update:
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
updated: ${{ steps.set-output.outputs.updated }}
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
Expand All @@ -28,3 +30,12 @@ jobs:
git add package.json
git commit -m 'chore(deps): update dependencies'
git push
echo "::set-output name=updated::true"
- name: Set output
id: set-output
if: steps.taze.outcome == 'failure'
run: echo "updated=true" >> $GITHUB_OUTPUT
lint:
needs: update
uses: ./.github/workflows/eslint.yml
if: needs.update.outputs.updated == 'true'

0 comments on commit 0aacfe6

Please sign in to comment.