From 205fd10310b0e61b2ed72b2fdeda95cd59584fbd Mon Sep 17 00:00:00 2001 From: jan Date: Thu, 5 Jan 2023 00:12:05 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20[ci]=20testing=20build=20as=20ow?= =?UTF-8?q?n=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-deploy.yml | 7 ------- .github/workflows/pr.yml | 14 +++----------- .github/workflows/test_build.yml | 13 +++---------- 3 files changed, 6 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index deaffd2adc..99e56388e4 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -20,11 +20,4 @@ jobs: uses: ./.github/workflows/deploy.yml with: branch: ${{ needs.build.outputs.branch }} - secrets: inherit - - test: - name: '[๐Ÿ‘ท๐Ÿš€] Test' - uses: ./.github/workflows/test_build.yml - with: - ref: ${{ github.ref }} secrets: inherit \ No newline at end of file diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a9ee6df084..f1f57b5b40 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,7 +1,8 @@ name: '[๐Ÿ‘ท๐Ÿ”€] PR Build' run-name: '[๐Ÿ‘ท๐Ÿ”€] Build on PR #${{ github.event.number }}, `${{ github.ref }}`' -on: [pull_request] +on: + pull_request: jobs: build: @@ -16,13 +17,4 @@ jobs: uses: ./.github/workflows/test_build.yml with: ref: ${{ github.ref }} - secrets: inherit - - success: - name: '[๐Ÿ‘ท๐Ÿ”€] Success' - needs: [build, test] - runs-on: ubuntu-latest - if: ${{ success() }} - steps: - - run: | - echo "๐Ÿฅณ Build and test successful!" \ No newline at end of file + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/test_build.yml b/.github/workflows/test_build.yml index b17163e1bc..315b205e66 100644 --- a/.github/workflows/test_build.yml +++ b/.github/workflows/test_build.yml @@ -1,14 +1,9 @@ name: '[๐Ÿงช] Test build' -run-name: '[๐Ÿงช] Test build on `${{ inputs.ref }}`' +run-name: '[๐Ÿงช] Test build on `${{ github.ref }}`' on: - workflow_call: - inputs: - ref: - description: 'The ref to build on' - required: false - type: string - default: github.ref + push: + pull_request: jobs: build: @@ -21,8 +16,6 @@ jobs: - name: '[๐Ÿ“ฅ] checkout' uses: actions/checkout@v3 with: - ssh-key: ${{ secrets.SSH_DEPLOY_KEY }} - ref: ${{ inputs.ref }} fetch-depth: 0 - name: '[๐Ÿ‘ท] run build script'