From d2beb368df9fd836abd047ca9d6df83a2ef7fff6 Mon Sep 17 00:00:00 2001 From: homoluctus Date: Fri, 4 Jun 2021 01:24:52 +0900 Subject: [PATCH] ci: Create pull request after transpile --- .github/workflows/build.yaml | 7 +++++-- .github/workflows/integration-test.yml | 7 +++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7e3309e..976d986 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -27,10 +27,13 @@ jobs: - name: Transpile run: yarn run build - - name: Push changes + - name: Commit run: | git config user.name "${GITHUB_ACTOR}" git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" git add . git commit -m "build: Transpile" || echo "No changes to commit" - git push origin HEAD \ No newline at end of file + + - uses: peter-evans/create-pull-request@v3 + with: + title: 'Transpile' diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 9874717..f5674a4 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -1,10 +1,9 @@ name: Integration Test on: - workflow_run: - workflows: ["Build"] - types: - - completed + pull_request: + paths: + - "dist" env: IMAGE_NAME: knqyf263/vuln-image