Skip to content

Commit

Permalink
change ci start logic
Browse files Browse the repository at this point in the history
  • Loading branch information
llh730 committed Aug 15, 2024
1 parent f47f7fd commit a04078c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/push-to-discrete-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches: [mi_dev]
jobs:
push:
if: ${{ ! contains(github.event.head_commit.message, 'git subrepo')}}
runs-on: ubuntu-latest
steps:
- name: Setup SSH
Expand All @@ -23,13 +24,11 @@ jobs:
git config user.name "$(git log -n 1 --pretty=format:%an)"
git config user.email "$(git log -n 1 --pretty=format:%ae)"
- name: Push To Discrete Repo
if: ${{ ! contains(github.event.head_commit.message, 'git subrepo')}}
run: |
source /opt/git-subrepo/.rc
cd mi-dev-integral-rel4
git subrepo push --all
- name: Update Current Repo
if: ${{ ! contains(github.event.head_commit.message, 'git subrepo')}}
run: |
source /opt/git-subrepo/.rc
cd mi-dev-integral-rel4
Expand Down

0 comments on commit a04078c

Please sign in to comment.