Created
May 16, 2022 15:26
-
-
Save pavelkorolevxyz/c8b10251120dee845ecbcbe85c314512 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pull Request | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| pipeline: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Set up environment | |
| uses: actions/setup-java@v1 | |
| with: | |
| java-version: 11 | |
| - name: Change wrapper permissions | |
| run: chmod +x ./gradlew | |
| - name: detekt # Run detekt | |
| run: ./gradlew detekt | |
| - name: Danger # And Danger action | |
| uses: docker://ghcr.io/danger/danger-kotlin:1.0.0 | |
| with: | |
| args: --dangerfile config/danger/config.df.kts # Note I have config located like this | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Extracted automatically |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment