From a84b3585d1dbaa92f994f995df2d1c7b59bd537a Mon Sep 17 00:00:00 2001 From: Gran Luo Date: Thu, 28 Jan 2021 18:14:33 -0800 Subject: [PATCH 1/4] Test merge workflow. --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c6e6a0b..7c9fe88 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,3 +39,4 @@ jobs: run: | echo "the branch is here." echo "${{ github.head_ref }}" + echo "see if it works." From f305d10c52e2286dac347e26133b7f5fce9fa891 Mon Sep 17 00:00:00 2001 From: Gran Luo Date: Thu, 28 Jan 2021 18:19:40 -0800 Subject: [PATCH 2/4] Test merge workflow. --- .github/workflows/test.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7c9fe88..ff0e8c8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,9 +1,7 @@ name: test_issue_generation -on: - pull_request: - paths: - - '.github/workflows/test.yml' +on: [pull_request] + jobs: get_link: runs-on: macOS-latest @@ -18,6 +16,7 @@ jobs: name: job_log_link path: id_artifact.txt dummy_job: + needs: get_link runs-on: macOS-latest steps: - uses: actions/checkout@v2 From a73c13653ac26c4863059f8611d0958f1e348de5 Mon Sep 17 00:00:00 2001 From: Gran Luo Date: Thu, 28 Jan 2021 18:26:47 -0800 Subject: [PATCH 3/4] Test merge workflow. --- .github/workflows/main.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eac26fa..456bc11 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,13 +6,5 @@ jobs: name: A job to say hello steps: - uses: actions/checkout@v2 - - name: Hello world action step - id: hello - uses: ./.github/actions/hello-docker - with: - who-to-greet: 'Mona the Octocat' - access-token: '${{ secrets.ISSUE_TEST_TOKEN }}' - exclude-workflow-files: 'performance.yml performance-integration-tests.yml' - # Use the output from the `hello` step - name: Get the output time - run: echo "The time was ${{ steps.hello.outputs.time }}" + run: echo "The time was " From 46dfc1e37ed1f08381b5032a697833ab955844a9 Mon Sep 17 00:00:00 2001 From: Gran Luo Date: Thu, 28 Jan 2021 19:29:23 -0800 Subject: [PATCH 4/4] Test merge workflow. --- .github/workflows/test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ff0e8c8..64ee0c0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,6 @@ name: test_issue_generation -on: [pull_request] +on: [pull_request, push] jobs: get_link: @@ -33,8 +33,14 @@ jobs: with: name: job_log_link path: id_artifact.txt + - name: run after each pr + if: github.event_name == 'pull_request' + run: | + echo "the branch is here." + echo "${{ github.head_ref }}" + echo "see if it works." - name: run after merge - if: github.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'push' run: | echo "the branch is here." echo "${{ github.head_ref }}"