Skip to content

Commit

Permalink
update workflow conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
marshacb committed Sep 6, 2023
1 parent 5e842e8 commit 2ad91d1
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,28 @@ jobs:
- name: Install deps
run: yarn install

- run: echo ${{github.actor}}

# remove previous assets registry
- run: rm registry.json
# - run: rm registry.json

# rebuild assets registry
- run: yarn start
# # rebuild assets registry
# - run: yarn start

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automated Registry Update
file_pattern: '*.json'
disable_globbing: true

auto-approve:
name: 'Auto Approval'
needs: build-registry
runs-on: ubuntu-latest
permissions:
pull-requests: write

steps:
- uses: hmarr/auto-approve-action@v3
with:
review-message: "Auto approved automated PR"

0 comments on commit 2ad91d1

Please sign in to comment.