Limit the run of draftversion-check to the relevant branches #1076
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
# SPDX-FileCopyrightText: Copyright 2021 Arm Limited and/or its affiliates <open-source-office@arm.com> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
name: CI | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: check the correctness of the sources and generate the PDFs | ||
run: ./build_with_docker.sh | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: pdfs | ||
path: pdfs | ||
build-github-pages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: generate the GitHub Pages locally in order to check for errors | ||
run: ./tools/build-github-pages.sh build | ||
markdown-link-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
with: | ||
config-file: '.github/workflows/markdown-link-check.json' | ||
draftversion-check: | ||
runs-on: ubuntu-latest | ||
if: (github.event_name == 'pull_request' && github.base_ref == 'main') || | ||
(github.event_name == 'push' && github.ref == 'refs/heads/main') | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Check correctness of draftversion fields | ||
run: echo "event name: ${{ github.event_name }}; base ref: ${{ github.base_ref }}; ref: ${{ github.ref }}" | ||
run: python ./tools/acle_draftversion_value_check.py . |