Pin GitHub Actions dependencies with commit SHAs, migrate to gradle/actions, and switch to weekly updates #368
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| asciidoctor: | |
| name: "Asciidoctor" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| distribution: 'zulu' | |
| java-version: 11 | |
| cache: 'gradle' | |
| - name: Run Asciidoctor | |
| run: ./gradlew asciidoctor | |
| - name: Publish to GitHub Pages | |
| if: github.repository == 'assertj/doc' && github.event_name == 'push' | |
| run: ./gradlew --stacktrace --info gitPublishPush | |
| env: | |
| GIT_COMMITTER_NAME: GitHub Actions | |
| GIT_COMMITTER_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com | |
| GRGIT_USER: ${{ secrets.ASCIIDOCTOR_TOKEN }} |