mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-13 12:15:09 +03:00
fix ci issue
This commit is contained in:
@@ -22,17 +22,17 @@ jobs:
|
||||
with:
|
||||
separator: ","
|
||||
files: |
|
||||
backend/decky_plugin.pyi
|
||||
backend/decky_loader/plugin/imports/decky.pyi
|
||||
|
||||
- name: Is stub changed
|
||||
id: changed-stub
|
||||
run: |
|
||||
STUB_CHANGED="false"
|
||||
PATHS=(backend backend/decky_plugin.pyi)
|
||||
PATHS=(backend backend/decky_loader/plugin/imports/decky.pyi)
|
||||
SHA=${{ github.sha }}
|
||||
SHA_PREV=HEAD^
|
||||
FILES=$(git diff $SHA_PREV..$SHA --name-only -- ${PATHS[@]} | jq -Rsc 'split("\n")[:-1] | join (",")')
|
||||
if [[ "$FILES" == *"backend/decky_plugin.pyi"* ]]; then
|
||||
if [[ "$FILES" == *"backend/decky_loader/plugin/imports/decky.pyi"* ]]; then
|
||||
STUB_CHANGED="true"
|
||||
echo "Stub has changed, pushing updated stub"
|
||||
else
|
||||
@@ -43,12 +43,12 @@ jobs:
|
||||
echo "has_changed=$STUB_CHANGED" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Push updated stub
|
||||
if: steps.changed-stub.outputs.has_changed == true
|
||||
if: github.ref == 'refs/heads/main' && 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: 'backend/decky_plugin.pyi'
|
||||
source_file: 'backend/decky_loader/plugin/imports/decky.pyi'
|
||||
destination_repo: 'SteamDeckHomebrew/decky-plugin-template'
|
||||
user_email: '11465594+TrainDoctor@users.noreply.github.com'
|
||||
user_name: 'TrainDoctor'
|
||||
|
||||
Reference in New Issue
Block a user