From 6252d4c2bf6a46492de0a780d378b48ee2b7164f Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sun, 19 Jan 2020 06:44:25 +0000 Subject: [PATCH 1/3] Add integration test --- .github/workflows/autobump.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/autobump.yml diff --git a/.github/workflows/autobump.yml b/.github/workflows/autobump.yml new file mode 100644 index 0000000..f3d8358 --- /dev/null +++ b/.github/workflows/autobump.yml @@ -0,0 +1,31 @@ +name: autobump +on: + schedule: + - cron: '*/15 * * * *' + pull_request: # for testing + +jobs: + autobump: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ./ + id: autobump + with: + file: testdata/testfile + version_name: REVIEWDOG_VERSION + repo: reviewdog/reviewdog + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + title: "chore(deps): update reviewdog to ${{ steps.autobump.outputs.latest }}" + commit-message: "chore(deps): update reviewdog to ${{ steps.autobump.outputs.latest }}" + body: | + Update reviewdog to [${{ steps.autobump.outputs.latest }}](https://github.com/reviewdog/reviewdog/releases/tag/${{ steps.autobump.outputs.latest }}) + + This PR is auto generated by [autobump workflow](https://github.com/${{ github.repository }}/actions?query=workflow%3Aautobump). + branch: autobump/reviewdog + + From 6fb9aed1525c943689dedbe1416ee4e206be5f03 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sun, 19 Jan 2020 06:59:23 +0000 Subject: [PATCH 2/3] Use push event instead create-pull-request doesn't work with pull-request event. https://github.com/peter-evans/create-pull-request/issues/75 --- .github/workflows/autobump.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/autobump.yml b/.github/workflows/autobump.yml index f3d8358..4b99664 100644 --- a/.github/workflows/autobump.yml +++ b/.github/workflows/autobump.yml @@ -2,7 +2,9 @@ name: autobump on: schedule: - cron: '*/15 * * * *' - pull_request: # for testing + push: # for testing + branches: + - '**' jobs: autobump: From 97268bb79108b70f3ef357254fa734fca0b73261 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sun, 19 Jan 2020 07:01:48 +0000 Subject: [PATCH 3/3] Add v prefix --- .github/workflows/autobump.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autobump.yml b/.github/workflows/autobump.yml index 4b99664..cadba8e 100644 --- a/.github/workflows/autobump.yml +++ b/.github/workflows/autobump.yml @@ -25,7 +25,7 @@ jobs: title: "chore(deps): update reviewdog to ${{ steps.autobump.outputs.latest }}" commit-message: "chore(deps): update reviewdog to ${{ steps.autobump.outputs.latest }}" body: | - Update reviewdog to [${{ steps.autobump.outputs.latest }}](https://github.com/reviewdog/reviewdog/releases/tag/${{ steps.autobump.outputs.latest }}) + Update reviewdog to [${{ steps.autobump.outputs.latest }}](https://github.com/reviewdog/reviewdog/releases/tag/v${{ steps.autobump.outputs.latest }}) This PR is auto generated by [autobump workflow](https://github.com/${{ github.repository }}/actions?query=workflow%3Aautobump). branch: autobump/reviewdog