From 4831ca5a759a353379c2032e6998bc616ba9dc8d Mon Sep 17 00:00:00 2001 From: Julian Gruber Date: Mon, 11 Nov 2019 14:38:35 +0100 Subject: [PATCH 1/5] fix ci --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9fd1d45c..b160c6b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: juliangruber/merge-pull-request-action@master + - name: Checkout + uses: actions/checkout@v1 + - name: Merge Pull Request + uses: ./ with: github-token: ${{ secrets.GITHUB_TOKEN }} number: 1 From cd1184fb57d082aa69b3e87f23bdef3adf7294a6 Mon Sep 17 00:00:00 2001 From: Julian Gruber Date: Tue, 12 Nov 2019 11:19:25 +0100 Subject: [PATCH 2/5] test --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b160c6b2..b0bd4f31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,14 @@ jobs: steps: - name: Checkout uses: actions/checkout@v1 + - name: Reopen Pull Request + uses: juliangruber/octokit-action@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + command: pulls.create + title: Test + head: master + base: master - name: Merge Pull Request uses: ./ with: From f33466df510ce10d12c47b344761c01a6236b2f5 Mon Sep 17 00:00:00 2001 From: Julian Gruber Date: Tue, 12 Nov 2019 11:24:10 +0100 Subject: [PATCH 3/5] try master --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0bd4f31..3e6e5c27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: - name: Checkout uses: actions/checkout@v1 - name: Reopen Pull Request - uses: juliangruber/octokit-action@v1 + uses: juliangruber/octokit-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} command: pulls.create From 5fe08f2b9d0240883d1cc0e1c3286c3d75af5a29 Mon Sep 17 00:00:00 2001 From: Julian Gruber Date: Tue, 12 Nov 2019 11:31:06 +0100 Subject: [PATCH 4/5] create a branch --- .github/workflows/ci.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e6e5c27..576d6cff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,14 +6,21 @@ jobs: steps: - name: Checkout uses: actions/checkout@v1 - - name: Reopen Pull Request + - name: Create a branch uses: juliangruber/octokit-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} - command: pulls.create - title: Test - head: master - base: master + command: git.createRef + ref: refs/heads/bloop + sha: master + # - name: Reopen Pull Request + # uses: juliangruber/octokit-action@master + # with: + # github-token: ${{ secrets.GITHUB_TOKEN }} + # command: pulls.create + # title: Test + # head: master + # base: master - name: Merge Pull Request uses: ./ with: From 735055a91d5107c274cddcc8a34d2f6f81e4b572 Mon Sep 17 00:00:00 2001 From: Julian Gruber Date: Tue, 12 Nov 2019 11:34:30 +0100 Subject: [PATCH 5/5] get latest commit in test branch --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 576d6cff..c25826d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,14 @@ jobs: steps: - name: Checkout uses: actions/checkout@v1 - - name: Create a branch + - name: Find latest commit in test branch + uses: juliangruber/octokit-action@master + id: get-branch + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + command: repos.getBranch + branch: test + - name: Create a new branch uses: juliangruber/octokit-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }}