-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.13 KB
/
sync-files.yaml
File metadata and controls
39 lines (35 loc) · 1.13 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
---
name: sync-files
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref || github.run_id }}
cancel-in-progress: true
permissions:
id-token: write
contents: write
pull-requests: write
on:
workflow_call:
inputs:
gh_app_id:
description: >-
The ID of the GitHub App used to interact with GitHub (e.g., cloning,
committing, pushing).
required: false
type: number
default: 1817613
jobs:
sync-files:
runs-on: ubuntu-latest
steps:
- name: generate token from github app
id: github_app
uses: getsentry/action-github-app-token@d4b5da6c5e37703f8c3b3e43abb5705b46e159cc # v3
with:
app_id: ${{ inputs.gh_app_id }}
private_key: ${{ secrets.DEVOPS_ROAST_BOT_GH_APP_PRIVATE_KEY }}
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with:
token: ${{ steps.github_app.outputs.token }}
- uses: wadackel/files-sync-action@95d12ea42e78723763c810a462bcacb4cc315994 # v3
with:
github_token: ${{ steps.github_app.outputs.token }}