Преглед изворни кода

Merge pull request #1362 from nextcloud/feat/rebase-template

Update command-rebase.yml from template
Andy Scherzinger пре 3 година
родитељ
комит
5cd6e06eb3
2 измењених фајлова са 27 додато и 18 уклоњено
  1. 27 0
      .github/workflows/command-rebase.yml
  2. 0 18
      .github/workflows/rebase.yml

+ 27 - 0
.github/workflows/command-rebase.yml

@@ -0,0 +1,27 @@
+# This workflow is provided via the organization template repository
+#
+# https://github.com/nextcloud/.github
+# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
+
+on:
+  issue_comment:
+    types: [ created ]
+name: Automatic Rebase
+
+jobs:
+  rebase:
+    name: Rebase
+    # On pull requests and if the comment starts with `/rebase`
+    if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase')
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout the latest code
+        uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
+      
+      - name: Automatic Rebase
+        uses: cirrus-actions/rebase@1.5
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 0 - 18
.github/workflows/rebase.yml

@@ -1,18 +0,0 @@
-on:
-    issue_comment:
-        types: [ created ]
-name: Automatic Rebase
-jobs:
-    rebase:
-        name: Rebase
-        if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
-        runs-on: ubuntu-latest
-        steps:
-            -   name: Checkout the latest code
-                uses: actions/checkout@v2
-                with:
-                    fetch-depth: 0
-            -   name: Automatic Rebase
-                uses: cirrus-actions/rebase@1.3.1
-                env:
-                    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}