@@ -104,27 +104,18 @@ jobs:
104104 uv run poe generate-models
105105 fi
106106
107- - name : Stage model changes
108- id : stage
109- run : |
110- git add 'src/apify_client/_*_generated.py'
111- if git diff --cached --quiet; then
112- echo "has-changes=false" >> "$GITHUB_OUTPUT"
113- else
114- echo "has-changes=true" >> "$GITHUB_OUTPUT"
115- fi
116-
117107 - name : Commit model changes
118- if : steps.stage.outputs.has-changes == 'true'
119- uses : apify/workflows/ commit@v0.44 .0
108+ id : commit
109+ uses : apify/actions/signed- commit@v1.0 .0
120110 with :
121- commit-message : ${{ env.TITLE }}
111+ message : ${{ env.TITLE }}
112+ add : ' src/apify_client/_*_generated.py'
122113 github-token : ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
123114 branch : ${{ env.BRANCH }}
124115 create-branch : ' true'
125116
126117 - name : Create or update PR
127- if : steps.stage .outputs.has-changes == 'true'
118+ if : steps.commit .outputs.committed == 'true'
128119 id : pr
129120 env :
130121 GH_TOKEN : ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
@@ -158,7 +149,7 @@ jobs:
158149
159150 # Post a cross-repo comment on the original docs PR so reviewers know about the corresponding client-python PR.
160151 - name : Comment on apify-docs PR
161- if : steps.stage .outputs.has-changes == 'true' && inputs.docs_pr_number
152+ if : steps.commit .outputs.committed == 'true' && inputs.docs_pr_number
162153 env :
163154 GH_TOKEN : ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
164155 PR_CREATED : ${{ steps.pr.outputs.created }}
0 commit comments