File tree Expand file tree Collapse file tree 5 files changed +39
-3
lines changed Expand file tree Collapse file tree 5 files changed +39
-3
lines changed Original file line number Diff line number Diff line change @@ -96,11 +96,23 @@ jobs:
96
96
name : shared_env
97
97
path : shared_env.txt
98
98
99
- - name : Upload Python Files
99
+ - name : Upload Cs Files
100
100
uses : actions/upload-artifact@v4
101
101
with :
102
102
name : cs-files
103
103
path : cs/
104
+ - name : Push C# changes to master
105
+ env :
106
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
107
+ if : github.ref == 'refs/heads/master'
108
+ run : |
109
+ git config --global user.name "github-actions[bot]"
110
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
111
+ git add cs/
112
+ git commit -m "[Automated changes] C# files" || echo "No changes to commit."
113
+ git remote set-url origin https://${GITHUB_TOKEN}@github.com/${{ github.repository }}
114
+ git push
115
+
104
116
105
117
live-tests :
106
118
needs : build
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ jobs:
129
129
run : |
130
130
git config --global user.name "github-actions[bot]"
131
131
git config --global user.email "github-actions[bot]@users.noreply.github.com"
132
- git add js/ dist/
132
+ git add js/ dist/ wiki/ README.md
133
133
git commit -m "[Automated changes] JS files" || echo "No changes to commit."
134
134
git remote set-url origin https://${GITHUB_TOKEN}@github.com/${{ github.repository }}
135
135
git push
Original file line number Diff line number Diff line change @@ -112,6 +112,18 @@ jobs:
112
112
name : php-files
113
113
path : php/
114
114
115
+ - name : Push PHP changes to master
116
+ env :
117
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
118
+ if : github.ref == 'refs/heads/master'
119
+ run : |
120
+ git config --global user.name "github-actions[bot]"
121
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
122
+ git add php/
123
+ git commit -m "[Automated changes] PHP files" || echo "No changes to commit."
124
+ git remote set-url origin https://${GITHUB_TOKEN}@github.com/${{ github.repository }}
125
+ git push
126
+
115
127
live-tests :
116
128
needs : build
117
129
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -107,6 +107,17 @@ jobs:
107
107
with :
108
108
name : python-files
109
109
path : python/
110
+ - name : Push Python changes to master
111
+ env :
112
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
113
+ if : github.ref == 'refs/heads/master'
114
+ run : |
115
+ git config --global user.name "github-actions[bot]"
116
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
117
+ git add python/
118
+ git commit -m "[Automated changes] Python files" || echo "No changes to commit."
119
+ git remote set-url origin https://${GITHUB_TOKEN}@github.com/${{ github.repository }}
120
+ git push
110
121
111
122
live-tests :
112
123
needs : build
Original file line number Diff line number Diff line change @@ -92,7 +92,8 @@ build_and_test_all () {
92
92
npm run test-freshness
93
93
if [ " $IS_TRAVIS " = " TRUE" ] && [ " $TRAVIS_PULL_REQUEST " = " false" ]; then
94
94
echo " Travis built all files and static/base tests passed, will push to master before running live tests"
95
- env COMMIT_MESSAGE=" ${TRAVIS_COMMIT_MESSAGE} " GITHUB_TOKEN=${GITHUB_TOKEN} SHOULD_TAG=false ./build/push.sh;
95
+ echo " Not pushing to master, github actions will handle it"
96
+ # env COMMIT_MESSAGE="${TRAVIS_COMMIT_MESSAGE}" GITHUB_TOKEN=${GITHUB_TOKEN} SHOULD_TAG=false ./build/push.sh;
96
97
fi
97
98
last_commit_message=$( git log -1 --pretty=%B)
98
99
echo " Last commit: $last_commit_message " # for debugging
You can’t perform that action at this time.
0 commit comments