mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 12:11:58 +00:00
fix ci issue
This commit is contained in:
@@ -22,17 +22,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
separator: ","
|
separator: ","
|
||||||
files: |
|
files: |
|
||||||
backend/decky_plugin.pyi
|
backend/decky_loader/plugin/imports/decky.pyi
|
||||||
|
|
||||||
- name: Is stub changed
|
- name: Is stub changed
|
||||||
id: changed-stub
|
id: changed-stub
|
||||||
run: |
|
run: |
|
||||||
STUB_CHANGED="false"
|
STUB_CHANGED="false"
|
||||||
PATHS=(backend backend/decky_plugin.pyi)
|
PATHS=(backend backend/decky_loader/plugin/imports/decky.pyi)
|
||||||
SHA=${{ github.sha }}
|
SHA=${{ github.sha }}
|
||||||
SHA_PREV=HEAD^
|
SHA_PREV=HEAD^
|
||||||
FILES=$(git diff $SHA_PREV..$SHA --name-only -- ${PATHS[@]} | jq -Rsc 'split("\n")[:-1] | join (",")')
|
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"
|
STUB_CHANGED="true"
|
||||||
echo "Stub has changed, pushing updated stub"
|
echo "Stub has changed, pushing updated stub"
|
||||||
else
|
else
|
||||||
@@ -43,12 +43,12 @@ jobs:
|
|||||||
echo "has_changed=$STUB_CHANGED" >> $GITHUB_OUTPUT
|
echo "has_changed=$STUB_CHANGED" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Push updated stub
|
- 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
|
uses: dmnemec/copy_file_to_another_repo_action@bbebd3da22e4a37d04dca5f782edd5201cb97083
|
||||||
env:
|
env:
|
||||||
API_TOKEN_GITHUB: ${{ secrets.GITHUB_TOKEN }}
|
API_TOKEN_GITHUB: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
source_file: 'backend/decky_plugin.pyi'
|
source_file: 'backend/decky_loader/plugin/imports/decky.pyi'
|
||||||
destination_repo: 'SteamDeckHomebrew/decky-plugin-template'
|
destination_repo: 'SteamDeckHomebrew/decky-plugin-template'
|
||||||
user_email: '11465594+TrainDoctor@users.noreply.github.com'
|
user_email: '11465594+TrainDoctor@users.noreply.github.com'
|
||||||
user_name: 'TrainDoctor'
|
user_name: 'TrainDoctor'
|
||||||
|
|||||||
Reference in New Issue
Block a user