Commit cc3de23 1 parent 2c1cfd3 commit cc3de23 Copy full SHA for cc3de23
File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 6
6
paths-ignore :
7
7
- ' **.md'
8
8
- ' .gitignore'
9
- schedule :
10
- - cron : ' 00 10 * * 3 '
9
+ repository_dispatch :
10
+ types : [ build ]
11
11
workflow_dispatch :
12
12
13
13
permissions :
Original file line number Diff line number Diff line change 30
30
git add flake.lock
31
31
git commit -m "bot: nix flake update"
32
32
git push
33
+ echo "trigger_build=1" >> $GITHUB_OUTPUT
33
34
else
34
35
echo "flake.lock is not changed..."
36
+ echo "trigger_build=0" >> $GITHUB_OUTPUT
35
37
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
+ });
You can’t perform that action at this time.
0 commit comments