summaryrefslogtreecommitdiff
path: root/.github/workflows/edit-check.yml
blob: 9a578a86ef50fa566a51f73439e7cfef21fce06d (plain)
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: Push Updated Plugin Stub to Template

on: push

jobs:
  copy-stub:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@8230315d06ad95c617244d2f265d237a1682d445
      with:
        ref: ${{ github.sha }}
        fetch-depth: 0
        token: ${{ secrets.GITHUB_TOKEN }}

    - name: Checkout
      uses: actions/checkout@v2
      
    - name: Get changed files
      id: changed-files
      uses: tj-actions/changed-files@v35.6.3
      with:
        separator: ","
        files: |
          plugin/plugin.pyi

    - name: Push updated stub
      if: steps.changed-stub.outputs.has_changed == true
      uses: dmnemec/copy_file_to_another_repo_action@bbebd3da22e4a37d04dca5f782edd5201cb97083
      env:
        API_TOKEN_GITHUB: ${{ secrets.GITHUB_TOKEN }}
      with:
        source_file: 'plugin/decky_plugin.pyi'
        destination_repo: 'SteamDeckHomebrew/decky-plugin-template'
        user_email: '11465594+TrainDoctor@users.noreply.github.com'
        user_name: 'TrainDoctor'
        commit_message: 'Updated template with latest plugin stub changes'