File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 2121 ref : ${{ github.ref }}
2222 persist-credentials : false
2323
24- - name : Pushes to another repo (approach 1 )
25- if : (! contains(github.event.head_commit.message, 'action_v2 '))
24+ - name : Push to another repo (approach A )
25+ if : (contains(github.event.head_commit.message, 'BUILD_A '))
2626 run : |
2727 TEMP_DIR=$(mktemp -d)
2828 TEMP_DIR_GIT="$TEMP_DIR/python-${{ inputs.exchange_name }}"
@@ -34,14 +34,16 @@ jobs:
3434 git add .
3535 git commit -m "build: ${{ github.sha }}"
3636 git push origin main --force
37-
38- - name : Pushes to another repository (approach 2 )
39- if : contains(github.event.head_commit.message, 'action_v2' )
37+
38+ - name : Push to another repo (approach B )
39+ if : (! contains(github.event.head_commit.message, 'BUILD_B') )
4040 run : |
4141 git config user.name github-actions
4242 git config user.email [email protected] 4343 git remote add prod https://x-access-token:${{ secrets.API_TOKEN_FOR_CCXT_SINGLE_EXCHANGES }}@github.com/ccxt/python-${{ inputs.exchange_name }}.git
4444 git config pull.rebase false
4545 git fetch --unshallow origin
4646 git pull --allow-unrelated-histories prod main || echo "Git pull failed"
47- git push prod main --force
47+ git push prod main --force
48+
49+
You can’t perform that action at this time.
0 commit comments