Skip to content

Commit

Permalink
Update main.workflow sample to use YML syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
bellingard committed Aug 13, 2019
1 parent cc7ffd5 commit b1cb008
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,19 @@ sonar.sources=.
The workflow, usually declared in `.github/main.workflow`, looks like:

```
workflow "Main Workflow" {
on = "push"
resolves = "SonarCloud Trigger"
}
action "SonarCloud Trigger" {
uses = "sonarsource/sonarcloud-github-action@master"
secrets = ["GITHUB_TOKEN", "SONAR_TOKEN"]
}
on: push
name: Main Workflow
jobs:
sonarCloudTrigger:
name: SonarCloud Trigger
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
```

### Secrets
Expand Down

0 comments on commit b1cb008

Please sign in to comment.