Skip to content

Commit

Permalink
Fixed update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed May 7, 2024
1 parent 567a61e commit 35f9ae7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update-flake-inputs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ jobs:
with:
filters: |
flake_lock:
- '**/*/flake.lock'
- 'flake.lock'
package_json:
- '**/*/package.json'
- name: Create Pull Request
id: cpr
if: steps.changes.outputs.src == 'true'
if: steps.changes.outputs.flake_lock == 'true' || steps.changes.outputs.package_json == 'true'
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.PAT }}

- name: Enable Pull Request Automerge
if: steps.changes.outputs.src == 'true' && steps.cpr.outputs.pull-request-operation == 'created'
if: (steps.changes.outputs.flake_lock == 'true' || steps.changes.outputs.package_json == 'true') && steps.cpr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@v3
with:
token: ${{ secrets.PAT }}
Expand Down

0 comments on commit 35f9ae7

Please sign in to comment.