-
Notifications
You must be signed in to change notification settings - Fork 38
35 lines (34 loc) · 1.11 KB
/
sys-update.yml
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
name: Update the tracy-client-sys crate
on:
workflow_dispatch:
schedule:
- cron: '37 0/6 * * *'
jobs:
update:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- run: rustup install stable --profile=minimal
- run: rustup default stable
- run: cargo install bindgen-cli
- run: sudo apt install -y jq curl
- run: bash make_sys.sh
id: make_sys
- run: git diff
- if: ${{ steps.make_sys.outputs.tracy-changed }}
uses: actions/create-github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- if: ${{ steps.make_sys.outputs.tracy-changed }}
name: Create Pull Request
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38
with:
title: "Update tracy client bindings to ${{ steps.make_sys.outputs.tracy-tag }}"
body: ''
delete-branch: true
token: ${{ steps.generate-token.outputs.token }}
base: main
branch-suffix: random