-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 970 Bytes
/
Copy pathbuild-public-subset.yml
File metadata and controls
37 lines (32 loc) · 970 Bytes
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
name: Build Public Subset
on:
workflow_dispatch:
push:
branches: [main]
permissions:
contents: read
jobs:
build-public-subset:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build subset from allowlist
shell: bash
run: |
set -euo pipefail
chmod +x scripts/public-repo-sync.sh
mkdir -p /tmp/public-subset
scripts/public-repo-sync.sh sync \
--source "$PWD" \
--target "/tmp/public-subset" \
--allowlist ".github/public-sync-allowlist.txt" \
--report "/tmp/public-subset-report.txt"
tar -czf /tmp/public-subset.tar.gz -C /tmp/public-subset .
- name: Upload subset artifact
uses: actions/upload-artifact@v4
with:
name: public-subset-${{ github.sha }}
path: |
/tmp/public-subset.tar.gz
/tmp/public-subset-report.txt