Skip to content

Commit

Permalink
Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Apr 17, 2024
1 parent 4c01468 commit 6b22c82
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-scaffold-remote-zome.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: "build-and-cache-rust-tooling"
name: "build-scaffold-remote-zome"
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches: [ main ]
branches: [ main, develop ]

jobs:
build-and-cache:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "build-and-cache-rust-tooling"
name: "build-sync-npm-git-dependencies-with-nix"
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/update-flake-inputs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Auto-merge Dependabot
on:
schedule:
- cron: "0 7 * * *" # Run every day at 7AM

permissions:
pull-requests: write
contents: write

jobs:
automerge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Update Flake
run: |
nix flake update
nix develop
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
flake_lock:
- 'flake.lock'
package_json:
- '**/*/package.json'
- name: Create Pull Request
id: cpr
if: steps.changes.outputs.src == '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'
uses: peter-evans/enable-pull-request-automerge@v3
with:
token: ${{ secrets.PAT }}
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
merge-method: squash

0 comments on commit 6b22c82

Please sign in to comment.