From 5e404b350005c8a869357128728d612ac9c190b9 Mon Sep 17 00:00:00 2001 From: Swift Kim Date: Wed, 14 Sep 2022 15:24:44 +0900 Subject: [PATCH] Format CI scripts (#430) * Format CI scripts * Update action dependencies --- .github/workflows/analyze.yml | 9 ++-- .github/workflows/build.yml | 6 +-- .github/workflows/integration_test.yml | 6 +-- .github/workflows/pull_request_label.yml | 8 +-- .github/workflows/release.yml | 62 ++++++++++++------------ 5 files changed, 46 insertions(+), 45 deletions(-) diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml index f77259b73..e8ebbc8dc 100644 --- a/.github/workflows/analyze.yml +++ b/.github/workflows/analyze.yml @@ -6,8 +6,8 @@ jobs: dart_analyze: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: subosito/flutter-action@v1 + - uses: actions/checkout@v3 + - uses: subosito/flutter-action@v2 with: channel: stable - name: Install pub dependencies @@ -18,11 +18,12 @@ jobs: done - name: Analyze source code run: dart analyze --fatal-infos packages + format: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: subosito/flutter-action@v1 + - uses: actions/checkout@v3 + - uses: subosito/flutter-action@v2 with: channel: stable - name: Install clang-format diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 69295e689..eb48aaafe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,10 +6,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 2 - - uses: subosito/flutter-action@v1 + - uses: subosito/flutter-action@v2 with: channel: stable - name: Find changed packages @@ -47,7 +47,7 @@ jobs: -p tizen - name: Install flutter-tizen if: ${{ env.HAS_CHANGED_PACKAGES == 'true' }} - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: flutter-tizen/flutter-tizen path: flutter-tizen diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index 8460786cd..f32ceb15c 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -11,14 +11,14 @@ jobs: runs-on: [self-hosted, linux] if: ${{ github.repository_owner == 'flutter-tizen' }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 2 - - uses: subosito/flutter-action@v1 + - uses: subosito/flutter-action@v2 with: channel: stable - name: Install flutter-tizen - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: flutter-tizen/flutter-tizen path: flutter-tizen diff --git a/.github/workflows/pull_request_label.yml b/.github/workflows/pull_request_label.yml index 8d899d6a5..80b1bb995 100644 --- a/.github/workflows/pull_request_label.yml +++ b/.github/workflows/pull_request_label.yml @@ -6,7 +6,7 @@ jobs: triage: runs-on: ubuntu-latest steps: - - uses: actions/labeler@v3 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - sync-labels: true + - uses: actions/labeler@v4 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + sync-labels: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6d6ab3ddf..513143c23 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,35 +11,35 @@ jobs: runs-on: ubuntu-latest if: ${{ github.repository_owner == 'flutter-tizen' }} steps: - - uses: subosito/flutter-action@v1 - with: - channel: stable - - uses: actions/checkout@v2 - with: + - uses: actions/checkout@v3 + with: fetch-depth: 2 - - name: Dry run on pull request - if: ${{ github.event_name == 'pull_request' }} - run: | - ./tools/tools_runner.sh publish-plugin \ - --all-changed \ - --pub-publish-flags=--dry-run \ - --base-sha=HEAD~ - - name: Wait on all tests - if: ${{ github.event_name == 'push' }} - uses: lewagon/wait-on-check-action@v1.1.1 - with: - ref: ${{ github.sha }} - running-workflow-name: 'release' - repo-token: ${{ secrets.GITHUB_TOKEN }} - wait-interval: 180 # seconds - allowed-conclusions: success - verbose: false - - name: Publish plugins - if: ${{ github.event_name == 'push' }} - run: | - ./tools/tools_runner.sh publish-plugin \ - --all-changed \ - --base-sha=HEAD~ \ - --skip-confirmation - env: {PUB_CREDENTIALS: "${{ secrets.PUB_CREDENTIALS }}"} - + - uses: subosito/flutter-action@v2 + with: + channel: stable + - name: Dry run on pull request + if: ${{ github.event_name == 'pull_request' }} + run: | + ./tools/tools_runner.sh publish-plugin \ + --all-changed \ + --pub-publish-flags=--dry-run \ + --base-sha=HEAD~ + - name: Wait on all tests + if: ${{ github.event_name == 'push' }} + uses: lewagon/wait-on-check-action@v1.1.1 + with: + ref: ${{ github.sha }} + running-workflow-name: 'release' + repo-token: ${{ secrets.GITHUB_TOKEN }} + wait-interval: 180 # seconds + allowed-conclusions: success + verbose: false + - name: Publish plugins + if: ${{ github.event_name == 'push' }} + env: + PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }} + run: | + ./tools/tools_runner.sh publish-plugin \ + --all-changed \ + --base-sha=HEAD~ \ + --skip-confirmation