Skip to content

Commit 331fa19

Browse files
author
github-actions
committed
build: 0be568c
1 parent 97ae509 commit 331fa19

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/reusable.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
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+

0 commit comments

Comments
 (0)