ci: [citest_skip] bump myrotvorets/set-commit-status-action from 2774e1f040c82ed70a76b4b5cd53bb11ffaedd0a to c0f880c99d91381c6fdb97726f03feb8004409b4 #1021
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
| --- | |
| # yamllint disable rule:line-length | |
| name: Test converting README.md to README.html | |
| on: # yamllint disable-line rule:truthy | |
| pull_request: | |
| merge_group: | |
| branches: | |
| - main | |
| types: | |
| - checks_requested | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| test_converting_readme: | |
| if: | | |
| !((github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[citest_skip]')) || | |
| (github.event_name == 'push' && contains(github.event.head_commit.message, '[citest_skip]'))) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Update pip, git | |
| run: | | |
| set -euxo pipefail | |
| sudo apt update | |
| sudo apt install -y git | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | |
| with: | |
| persist-credentials: false | |
| - name: Remove badges from README.md prior to converting to HTML | |
| run: sed -i '1,8 {/^\[\!.*actions\/workflows/d}' README.md | |
| - name: Convert README.md to HTML | |
| uses: docker://pandoc/core:latest | |
| with: | |
| args: >- | |
| --from gfm --to html5 --toc --shift-heading-level-by=-1 | |
| --template .pandoc_template.html5 | |
| --output README.html README.md | |
| - name: Upload README.html as an artifact | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: README.html | |
| path: README.html |