Skip to content

Commit 86600c2

Browse files
authored
chore: move py/php/c# pushback to actions (ccxt#25015)
* update pushed files * push back c#, php and py * remove push from travis
1 parent 2c679da commit 86600c2

File tree

5 files changed

+39
-3
lines changed

5 files changed

+39
-3
lines changed

.github/workflows/cs.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,23 @@ jobs:
9696
name: shared_env
9797
path: shared_env.txt
9898

99-
- name: Upload Python Files
99+
- name: Upload Cs Files
100100
uses: actions/upload-artifact@v4
101101
with:
102102
name: cs-files
103103
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+
104116
105117
live-tests:
106118
needs: build

.github/workflows/js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ jobs:
129129
run: |
130130
git config --global user.name "github-actions[bot]"
131131
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
133133
git commit -m "[Automated changes] JS files" || echo "No changes to commit."
134134
git remote set-url origin https://${GITHUB_TOKEN}@github.com/${{ github.repository }}
135135
git push

.github/workflows/php.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,18 @@ jobs:
112112
name: php-files
113113
path: php/
114114

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+
115127
live-tests:
116128
needs: build
117129
runs-on: ubuntu-latest

.github/workflows/python.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,17 @@ jobs:
107107
with:
108108
name: python-files
109109
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
110121
111122
live-tests:
112123
needs: build

build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ build_and_test_all () {
9292
npm run test-freshness
9393
if [ "$IS_TRAVIS" = "TRUE" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
9494
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;
9697
fi
9798
last_commit_message=$(git log -1 --pretty=%B)
9899
echo "Last commit: $last_commit_message" # for debugging

0 commit comments

Comments
 (0)