-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.57 KB
/
update_catalog.yml
File metadata and controls
42 lines (39 loc) · 1.57 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
36
37
38
39
40
41
42
name: Update OpenAPI Specification for shortcut.com
on:
workflow_dispatch:
schedule:
# On Fridays
- cron: '0 12 * * 5'
env:
FORCE_COLOR: "1"
# renovate: datasource=pypi depName=uv
UV_VERSION: 0.10.4
jobs:
update_openapi_specification:
name: Update Catalog
runs-on: ubuntu-24.04
permissions:
contents: write # Required by peter-evans/create-pull-request
pull-requests: write # Required by peter-evans/create-pull-request
steps:
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
id: generate-token
with:
app-id: ${{ vars.RESERVOIR_GITHUB_APP_ID }}
private-key: ${{ secrets.RESERVOIR_GITHUB_APP_PKEY }}
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
with:
version: ${{ env.UV_VERSION }}
- run: uv run --script scripts/update_openapi.py
- run: uv run pytest --snapshot-update tests/test_schema_evolution.py
- id: check_snapshot_changes
continue-on-error: true
run: git diff --quiet tests/__snapshots__
- uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
if: steps.check_snapshot_changes.outcome == 'failure'
with:
title: 'chore: Update tap catalog from fresh OpenAPI Specification for shortcut.com'
commit-message: 'chore: Update tap catalog from fresh OpenAPI Specification for shortcut.com'
token: ${{ steps.generate-token.outputs.token }}
signoff: true