-
Notifications
You must be signed in to change notification settings - Fork 58
31 lines (25 loc) · 931 Bytes
/
compat.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
# TODO: this should be added to the publish workflow
name: Create compat snapshot
on:
workflow_dispatch:
pull_request: # TEMP
jobs:
compat-snapshot:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get latest existing tag
uses: WyriHaximus/github-action-get-previous-tag@v1
id: get-latest-tag
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Create compat snapshot
run: cargo run -p c2pa-compat
- name: Send compat PR
uses: peter-evans/create-pull-request@v6
with:
title: "Create compat snapshot for ${{ steps.get-latest-tag.outputs.tag }}"
labels: compat-snapshot
commit-message: "Create compat snapshot for ${{ steps.get-latest-tag.outputs.tag }}"
branch: "compat-snapshot-${{ steps.get-latest-tag.outputs.tag }}"