diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml new file mode 100644 index 000000000000..d2ee95a54c6f --- /dev/null +++ b/.github/workflows/rebase.yml @@ -0,0 +1,32 @@ +name: Automatic Rebase +on: + issue_comment: + types: [created] +permissions: + contents: write +# pull-requests: write + # Enforce other not needed permissions are off +# actions: none +# checks: none +# deployments: none +# issues: none +# #metadata: read +# packages: none +# repository-projects: none +# security-events: none +# statuses: none +jobs: + rebase: + name: Rebase + if: (github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'OWNER') && 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: + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 # otherwise, you will fail to push refs to dest repo + - name: Automatic Rebase + uses: PastaPastaPasta/rebase@1.5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/TEST b/TEST new file mode 100644 index 000000000000..5eaed4d9221e --- /dev/null +++ b/TEST @@ -0,0 +1,3 @@ +Hello World + +Yo2