File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -24,16 +24,15 @@ jobs:
2424 fetch-depth : 2
2525
2626 - name : Sync English READMEs between root + docs/
27- id : sync_readmes
2827 run : |
2928 cd "${{ github.workspace }}/KudoAI/chatgpt.js"
3029 root_readme_modified=$(git log -1 --format="%ct" -- "README.md")
3130 docs_readme_modified=$(git log -1 --format="%ct" -- "docs/README.md")
3231 if [ "$root_readme_modified" -gt "$docs_readme_modified" ] ; then cp -f "README.md" "docs/README.md" ; sync_src="root"
3332 elif [ "$docs_readme_modified" -gt "$root_readme_modified" ] ; then cp -f "docs/README.md" "README.md" ; sync_src="docs" ; fi
3433
35- # Store sync src for commit msg in next step
36- echo "sync_src=$sync_src" >> $GITHUB_OUTPUT
34+ # Expose sync src for commit msg in push step
35+ echo "sync_src=$sync_src" >> $GITHUB_ENV
3736
3837 - name : Escape backticks in commit msg
3938 env :
5554 run : |
5655 cd ${{ github.workspace }}/KudoAI/chatgpt.js
5756 git add .
58- git commit -n -m "$ESCAPED_MSG ↞ [auto-sync from \`${{ steps.sync_readmes.outputs .sync_src }}\`]" || true
57+ git commit -n -m "$ESCAPED_MSG ↞ [auto-sync from \`${{ env .sync_src }}\`]" || true
5958 git push
You can’t perform that action at this time.
0 commit comments