[WIP] Docs: fix reStructuredText
syntax for figures
#6
Workflow file for this run
This file contains 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: Check changed files | |
on: | |
pull_request: | |
concurrency: | |
group: ${{ github.ref }}-${{ github.head_ref }}-checkdiff | |
cancel-in-progress: true | |
jobs: | |
check_diff: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Define base and head refs | |
env: | |
BASE_REF: ${{ github.event.pull_request.base.ref }} | |
HEAD_REF: ${{ github.event.pull_request.head.ref }} | |
run: | | |
echo "Base ref: ${BASE_REF}" | |
echo "Head ref: ${HEAD_REF}" | |
- name: Add main repository as remote | |
run: | | |
git remote add main https://github.com/ECP-WarpX/WarpX.git | |
- name: Fetch base branch from main repository | |
run: | | |
git fetch main ${BASE_REF} | |
- name: Get changed files | |
run: | | |
git diff --name-only --diff-filter=ACMRTUXB main/${BASE_REF}..${HEAD_REF} > check_diff.txt | |
- name: Check changed files | |
run: | | |
if grep -v -E "^(docs|\.github)/" check_diff.txt; then | |
echo "skip=false" >> ${GITHUB_OUTPUT} | |
else | |
echo "skip=true" >> ${GITHUB_OUTPUT} | |
fi | |
outputs: | |
skip: ${{ steps.check.outputs.skip }} |