OSDN Git Service

Create createPR.yml
authorhizumiaoba <56146205+hizumiaoba@users.noreply.github.com>
Tue, 12 Oct 2021 13:19:41 +0000 (22:19 +0900)
committerhizumiaoba <56146205+hizumiaoba@users.noreply.github.com>
Tue, 12 Oct 2021 13:30:11 +0000 (22:30 +0900)
.github/workflows/createPR.yml [new file with mode: 0644]

diff --git a/.github/workflows/createPR.yml b/.github/workflows/createPR.yml
new file mode 100644 (file)
index 0000000..1775fe1
--- /dev/null
@@ -0,0 +1,36 @@
+name: "create PR"
+
+on:
+  push:
+    branches: [ staging ]
+
+jobs:
+  createPullRequest:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+
+      - name: Create Pull Request
+        id: cpr
+        uses: peter-evans/create-pull-request@v3
+        with:
+          token: ${{ secrets.GITHUB_TOKEN }}
+          commit-message: Update report
+          committer: GitHub <noreply@github.com>
+          author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
+          signoff: false
+          branch: staging
+          base: master
+          delete-branch: false
+          title: 'Update report'
+          body: |
+            - Auto-generated by [create-pull-request][1]
+            [1]: https://github.com/peter-evans/create-pull-request
+          assignees: hizumiaoba
+          reviewers: hizumiaoba
+          draft: false
+
+      - name: Check outputs
+        run: |
+          echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
+          echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"