From 922b8a19eeff384008509a95dfd3f9af6c7353ce Mon Sep 17 00:00:00 2001 From: satackey <21271711+satackey@users.noreply.github.com> Date: Tue, 28 Jul 2020 09:38:48 +0900 Subject: [PATCH 1/3] Update release.yml --- .github/workflows/release.yml | 42 ++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index acb7f6c0..f97e365f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,7 @@ on: push: branches: - '**' + pull_request: delete: jobs: @@ -16,11 +17,26 @@ jobs: node-version: 12.x - uses: actions/checkout@v2 + + - name: Output info + id: info + run: | + if [ '${{ github.event_name }}' = 'pull_request' ]; then + echo '::set-output name=commit_message::' + exit 0 + fi + echo '::set-output name=commit_message::[auto]' - uses: satackey/push-prebuilt-action@v0.2.0-beta3 with: + commit-message: ${{ steps.info.outputs.commit_message }} push-branch: '{branch}-release' + - uses: actions/upload-artifact@v2 + with: + name: built + path: ./ + # # test built image caching @@ -37,11 +53,11 @@ jobs: id: extract run: | echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}" - - - uses: actions/checkout@v2 - name: Pull action + + - name: Download action + uses: actions/download-artifact@v2 with: - ref: ${{ steps.extract.outputs.branch }}-release + name: built path: action-dlc - uses: ./action-dlc @@ -66,10 +82,10 @@ jobs: run: | echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}" - - uses: actions/checkout@v2 - name: Pull action + - name: Download action + uses: actions/download-artifact@v2 with: - ref: ${{ steps.extract.outputs.branch }}-release + name: built path: action-dlc - uses: ./action-dlc @@ -115,10 +131,10 @@ jobs: run: | echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}" - - uses: actions/checkout@v2 - name: Pull action + - name: Download action + uses: actions/download-artifact@v2 with: - ref: ${{ steps.extract.outputs.branch }}-release + name: built path: action-dlc - uses: ./action-dlc @@ -140,10 +156,10 @@ jobs: run: | echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}" - - uses: actions/checkout@v2 - name: Pull action + - name: Download action + uses: actions/download-artifact@v2 with: - ref: ${{ steps.extract.outputs.branch }}-release + name: built path: action-dlc - uses: ./action-dlc From 7e3f64256b22e1d97e846e7149f6e3ef72a14b7d Mon Sep 17 00:00:00 2001 From: satackey <21271711+satackey@users.noreply.github.com> Date: Tue, 28 Jul 2020 10:04:19 +0900 Subject: [PATCH 2/3] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f97e365f..00eb813e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ on: delete: jobs: - build_and_push: + build: runs-on: ubuntu-latest steps: From 28f28bba720e844f7aab5735d9b9de9ba7d37fcf Mon Sep 17 00:00:00 2001 From: satackey <21271711+satackey@users.noreply.github.com> Date: Tue, 28 Jul 2020 10:05:54 +0900 Subject: [PATCH 3/3] Update release.yml --- .github/workflows/release.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 00eb813e..6cf82269 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,8 +42,7 @@ jobs: test_saving_built: runs-on: ubuntu-latest - needs: - - build_and_push + needs: build steps: - uses: actions/checkout@v2 @@ -70,8 +69,7 @@ jobs: test_restoring_built: runs-on: ubuntu-latest - needs: - - test_saving_built + needs: test_saving_built steps: - uses: actions/checkout@v2 @@ -122,8 +120,7 @@ jobs: test_saving_pulled: runs-on: ubuntu-latest - needs: - - build_and_push + needs: build steps: - name: Extract @@ -147,8 +144,7 @@ jobs: test_restoring_pulled: runs-on: ubuntu-latest - needs: - - test_saving_pulled + needs: test_saving_pulled steps: - name: Extract