lib/danger/ci_source/github_actions.rb in danger-6.3.1 vs lib/danger/ci_source/github_actions.rb in danger-6.3.2

- old
+ new

@@ -1,27 +1,20 @@ require "danger/request_sources/github/github" module Danger # ### CI Setup # - # You can use `danger/danger` Action in your .github/main.workflow. + # You can use `danger/danger` Action in your `.github/workflows/xxx.yml`. + # And so, you can use GITHUB_TOKEN secret as `DANGER_GITHUB_API_TOKEN` environment variable. # # ``` - # action "Danger" { - # uses = "danger/danger" - # } + # ... + # steps: + # - uses: actions/checkout@v1 + # - uses: danger/danger@master + # env: + # DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} # ``` - # - # ### Token Setup - # - # Set DANGER_GITHUB_API_TOKEN to secrets, or you can also use GITHUB_TOKEN. - # - # ``` - # action "Danger" { - # uses = "danger/danger" - # secrets = ["GITHUB_TOKEN"] - # } - # ``` # class GitHubActions < CI def self.validates_as_ci?(env) env.key? "GITHUB_ACTION" end