Skip to content

Commit cc3de23

Browse files
authored
ci: call build in evergreen
1 parent 2c1cfd3 commit cc3de23

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
paths-ignore:
77
- '**.md'
88
- '.gitignore'
9-
schedule:
10-
- cron: '00 10 * * 3'
9+
repository_dispatch:
10+
types: [ build ]
1111
workflow_dispatch:
1212

1313
permissions:

.github/workflows/evergreen.yml

+12
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ jobs:
3030
git add flake.lock
3131
git commit -m "bot: nix flake update"
3232
git push
33+
echo "trigger_build=1" >> $GITHUB_OUTPUT
3334
else
3435
echo "flake.lock is not changed..."
36+
echo "trigger_build=0" >> $GITHUB_OUTPUT
3537
fi
38+
- name: Trigger build
39+
uses: actions/github-script@v7
40+
if: steps.push.outputs.trigger_build == '1'
41+
with:
42+
script: |
43+
github.rest.repos.createDispatchEvent({
44+
owner: context.repo.owner,
45+
repo: context.repo.repo,
46+
event_type: 'build',
47+
});

0 commit comments

Comments
 (0)