From 8525c55b2da566dbdfbc6fe7b47dbf29746133a5 Mon Sep 17 00:00:00 2001 From: windowsboy111 Date: Wed, 12 Apr 2023 18:31:46 +0800 Subject: [PATCH] fix(ci): mg --- .github/workflows/autobuild.yml | 9 +++++---- .github/workflows/build.yml | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index 6c51a6154d..867e23bbc6 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -45,6 +45,11 @@ jobs: image: ghcr.io/terrapkg/builder:f38 options: --cap-add=SYS_ADMIN --privileged steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: terrapkg/anda-build@main if: github.event_name != 'pull_request' with: @@ -73,10 +78,6 @@ jobs: --token ${{ secrets.SUBATOMIC_TOKEN }} \ terra${{ matrix.version }} anda-build/rpm/rpms/* - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - name: Notify Madoguchi (Success) if: success() && github.event_name != 'pull_request' run: ./.github/workflows/mg.sh true ${{matrix.pkg.pkg}} ${{matrix.version}} ${{matrix.pkg.arch}} ${{github.run_id}} ${{secrets.MADOGUCHI_JWT}} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c9ef2a39a8..16f304dd91 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,6 +28,11 @@ jobs: image: ghcr.io/terrapkg/builder:f38 options: --cap-add=SYS_ADMIN --privileged steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: terrapkg/anda-build@main with: name: "${{ matrix.pkg }}pkg" @@ -42,10 +47,6 @@ jobs: --token ${{ secrets.SUBATOMIC_TOKEN }} \ terra${{ matrix.version }} anda-build/rpm/rpms/* - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - name: Notify Madoguchi (Success) if: success() run: ./.github/workflows/mg.sh true ${{matrix.pkg.pkg}} ${{matrix.version}} ${{matrix.pkg.arch}} ${{github.run_id}} ${{secrets.MADOGUCHI_JWT}}