Repository navigation
55 lines (46 loc) · 1.49 KB
/
Copy pathsync.yml
File metadata and controls
55 lines (46 loc) · 1.49 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
43
44
45
46
47
48
49
50
51
52
53
54
55
name: sync
on:
schedule:
- cron: "0 4 * * 1"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
permissions:
contents: read
jobs:
sync:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: pnpm/setup@a0881977cd8ea73b1ed212236c99ca10dcc80cf4 # v3
with:
cache: true
install: false
- name: Install dependencies
run: pnpm install
- name: Sync
id: sync
# a failure here (regressions, archived repos) should still produce a PR with whatever synced
continue-on-error: true
run: pnpm sync --fail-on-archived
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create pull request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: chore/sync-modules
title: "chore: sync module metadata"
commit-message: "chore: sync module metadata"
body: |
Automated `pnpm sync` run from the [`sync` workflow](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}).
labels: automated
delete-branch: true
- name: Report sync issues
if: steps.sync.outcome == 'failure'
run: exit 1