Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Update example to Actions 2.0 YML syntax (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks3w authored and fkorotkov committed Sep 1, 2019
1 parent 56a6591 commit af615f8
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
```

0 comments on commit af615f8

Please sign in to comment.