From af615f84e16c507939cf2b4a60937f81a4403642 Mon Sep 17 00:00:00 2001 From: Maks3w Date: Mon, 2 Sep 2019 00:59:32 +0200 Subject: [PATCH] Update example to Actions 2.0 YML syntax (#10) --- README.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index c304edc..4261f57 100644 --- a/README.md +++ b/README.md @@ -10,14 +10,17 @@ After installation simply comment `/rebase` to trigger the action: To configure the action simply add the following lines to your `.github/main.workflow` workflow file: -```hcl -workflow "Automatic Rebase" { - on = "issue_comment" - resolves = "Rebase" -} - -action "Rebase" { - uses = "docker://cirrusactions/rebase:latest" - secrets = ["GITHUB_TOKEN"] -} +```yml +on: issue_comment +name: Automatic Rebase +jobs: + rebase: + name: Rebase + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Automatic Rebase + uses: cirrus-actions/rebase@1.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ```