File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 11name : models
22
33on :
4- schedule :
5- - cron : " 0 0 * * *"
4+ push :
5+ branches : [ main ]
6+ # schedule:
7+ # - cron: "0 0 * * *"
68
79jobs :
810 update :
2830 git diff --exit-code langgraphics/metadata/models.json || echo "::set-output name=differs::true"
2931
3032 - name : Create Pull Request
33+ id : create-pr
3134 if : steps.compare.outputs.differs == 'true'
3235 uses : peter-evans/create-pull-request@v5
3336 with :
4043 title : Update the models metadata
4144 commit-message : Update the models metadata
4245 body : This PR updates the models metadata to keep the repository up-to-date with the upstream model costs.
46+
47+ - name : Enable auto-merge
48+ if : steps.create-pr.outputs.pull-request-number != ''
49+ env :
50+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
51+ run : |
52+ gh pr merge ${{ steps.create-pr.outputs.pull-request-number }} \
53+ --auto \
54+ --merge \
55+ --subject "Update the models metadata (GH-${{ steps.create-pr.outputs.pull-request-number }})" \
56+ --body "Co-authored-by: Artyom Vancyan <44609997+artyomvancyan@users.noreply.github.com>"
You can’t perform that action at this time.
0 commit comments