From 0d8dc13b6723079168c905da6311fef11a077d24 Mon Sep 17 00:00:00 2001 From: Brennan Ashton Date: Tue, 29 Dec 2020 11:53:05 -0800 Subject: [PATCH] CI: Only use approved GitHub Actions --- .github/workflows/build.yml | 8 +------- .github/workflows/doc.yml | 28 ++++++---------------------- .github/workflows/lint.yml | 5 ++++- 3 files changed, 11 insertions(+), 30 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 84004380a58..db38dc9075c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -142,13 +142,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Docker Pull - uses: nick-invision/retry@v1 - with: - timeout_minutes: 10 - max_attempts: 3 - retry_wait_seconds: 10 - command: docker pull docker.pkg.github.com/apache/incubator-nuttx-testing/nuttx-ci-linux - + run: docker pull docker.pkg.github.com/apache/incubator-nuttx-testing/nuttx-ci-linux - name: Export NuttX Repo SHA run: echo "nuttx_sha=`git -C sources/nuttx rev-parse HEAD`" >> $GITHUB_ENV - name: Run builds diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index a3dbf2f95f1..7565f4f4956 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -23,31 +23,15 @@ jobs: - uses: actions/setup-python@v2 with: python-version: '3.8' - - name: Generate requirements.txt file - run: | - cd Documentation/ - pip3 install pipenv - pipenv lock -r > requirements.txt - - uses: ammaraskar/sphinx-problem-matcher@master - - uses: ammaraskar/sphinx-action@master - with: - docs-folder: "Documentation/" - - uses: actions/upload-artifact@v2 - with: - name: sphinx-docs - path: Documentation/_build/html/ - linkcheck: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v2 - with: - python-version: '3.8' - - uses: ammaraskar/sphinx-problem-matcher@master - - name: Run linkcheck + - name: Generate Documentation run: | cd Documentation/ pip3 install pipenv pipenv install + pipenv run make html # This step flakes frequently so still annotate errors but dont fail the build pipenv run make linkcheck || true + - uses: actions/upload-artifact@v2 + with: + name: sphinx-docs + path: Documentation/_build/html/ diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b85863ddf3d..9cd105e2319 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,4 +9,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: 🧹 YAML Lint - uses: ibiqlik/action-yamllint@v3 + uses: github/super-linter@v3 + env: + VALIDATE_YAML: true + FILTER_REGEX_INCLUDE: .*\.github/.*