-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (37 loc) · 1.21 KB
/
update_check.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: clangd update check
on:
schedule:
- cron: "0 0 */7 * *"
workflow_dispatch:
jobs:
compareTag:
runs-on: ubuntu-latest
outputs:
latest_tag: ${{ steps.updateCheck.outputs.LATEST_TAG }}
requires_update: ${{ steps.updateCheck.outputs.REQUIRES_UPDATE }}
branch_name: ${{ steps.updateCheck.outputs.BRANCH_NAME }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- id: updateCheck
name: Run script
run: python ./scripts/update_check.py
makePR:
needs:
- compareTag
if: needs.compareTag.outputs.requires_update == 1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- name: Write modules/version.py
run: python ./scripts/update_version.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
commit-message: "chore: Bump clangd to ${{ needs.compareTag.outputs.latest_tag }}"
title: "chore: Bump clangd to ${{ needs.compareTag.outputs.latest_tag }}"
labels: auto-update
branch: chore/update/clangd-${{ needs.compareTag.outputs.branch_name }}