-
Notifications
You must be signed in to change notification settings - Fork 55
35 lines (34 loc) · 1.22 KB
/
sys-update.yml
File metadata and controls
35 lines (34 loc) · 1.22 KB
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@85e6279cec87321a52edac9c87bce653a07cf6c2
- 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@dff4b11d10ecc84d937fdd0653d8343a88c5b9c4
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@88ed63ce144f5372efe9f999d8bb224f582d98d9
with:
token: ${{ steps.generate-token.outputs.token }}
title: "Update tracy client bindings to ${{ steps.make_sys.outputs.tracy-tag }}"
body: ''
delete-branch: true
branch: sys-update/${{ steps.make_sys.outputs.tracy-tag }}
base: main