Skip to content

Commit bd8b994

Browse files
committed
feat: add sync-files
1 parent 2a7e1a6 commit bd8b994

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/sync-files.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: sync-files
3+
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref || github.run_id }}
6+
cancel-in-progress: true
7+
8+
permissions:
9+
id-token: write
10+
contents: write
11+
pull-requests: write
12+
13+
on:
14+
workflow_call:
15+
inputs:
16+
gh_app_id:
17+
description: >-
18+
The ID of the GitHub App used to interact with GitHub (e.g., cloning,
19+
committing, pushing).
20+
required: false
21+
type: number
22+
default: 1817613
23+
24+
jobs:
25+
sync-files:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: generate token from github app
29+
id: github_app
30+
uses: getsentry/action-github-app-token@v3
31+
with:
32+
app_id: ${{ inputs.gh_app_id }}
33+
private_key: ${{ secrets.DEVOPS_ROAST_BOT_GH_APP_PRIVATE_KEY }}
34+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v5
35+
with:
36+
token: ${{ steps.github_app.outputs.token }}
37+
- uses: wadackel/files-sync-action@v3
38+
with:
39+
github_token: ${{ steps.github_app.outputs.token }}

0 commit comments

Comments
 (0)