Skip to content

Commit

Permalink
test: refine action trigger (pingcap#1679) (pingcap#1712)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored May 20, 2021
1 parent eaa57ca commit 7bc755c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/binlog-999999.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ on:
branches:
- master
- release-2.0
pull_request:
branches:
- master
- release-2.0
schedule:
- cron: '3 22 * * *' # run at minute 06:03 UTC+8

jobs:
test-binlog-999999:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/chaos-mesh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -307,3 +307,5 @@ jobs:
- name: Set up tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v2
with:
timeout-minutes: 15
1 change: 1 addition & 0 deletions .github/workflows/check-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
run: make build nolint=true

arm_build:
if: ${{ github.ref != 'refs/heads/master' }}
runs-on: ubuntu-latest
name: Make Build
strategy:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/upgrade-via-tiup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
strategy:
fail-fast: false
matrix:
previous_v2: ["v2.0.0", "v2.0.1"]
previous_v2: ["v2.0.0", "v2.0.1", "v2.0.3"]

steps:

Expand All @@ -82,12 +82,12 @@ jobs:
path: go/src/github.com/pingcap/dm

- name: Build
if: ${{ github.ref != 'refs/heads/main' }}
if: ${{ github.ref != 'refs/heads/master' }}
working-directory: ${{ env.working-directory }}
run: make build nolint=true

- name: Package files
if: ${{ github.ref != 'refs/heads/main' }}
if: ${{ github.ref != 'refs/heads/master' }}
run: |
mkdir ${{ github.workspace }}/package
cd ${{ github.workspace }}/package
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
GOPATH=${GITHUB_WORKSPACE}/go docker-compose up -d
- name: Copy package files
if: ${{ github.ref != 'refs/heads/main' }}
if: ${{ github.ref != 'refs/heads/master' }}
run: |
cd ${{ github.workspace }}/package
docker cp dm-master-nightly-linux-amd64.tar.gz control:/tmp
Expand Down Expand Up @@ -226,4 +226,6 @@ jobs:
# Debug via SSH if previous steps failed
- name: Set up tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v2
uses: mxschmitt/action-tmate@v2
with:
timeout-minutes: 60
6 changes: 2 additions & 4 deletions .github/workflows/upstream-switch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ on:
branches:
- master
- release-2.0
pull_request:
branches:
- master
- release-2.0
schedule:
- cron: '3 22 * * *' # run at minute 06:03 UTC+8

jobs:
upstream-database-switch:
Expand Down

0 comments on commit 7bc755c

Please sign in to comment.