Skip to content

Commit

Permalink
Simplify the github workflows (#900)
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble authored Jun 27, 2022
1 parent a6891e0 commit 5b3885a
Showing 1 changed file with 4 additions and 31 deletions.
35 changes: 4 additions & 31 deletions .github/workflows/docs-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,41 +8,14 @@ on:

jobs:
validate-docs:
runs-on: ubuntu-latest
permissions:
contents: read
name: Validate Ansible Docs
env:
ANSIBLE_COLLECTIONS_PATHS: ${{ github.workspace }}
if: github.event.action != 'closed'
steps:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'

- name: Install Ansible
run: pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check

- name: Checkout
uses: actions/checkout@v3
with:
ref: refs/pull/${{ github.event.number }}/merge
path: ansible_collections/amazon/aws

- name: Initialize the build environment
id: init
uses: ansible-community/github-docs-build/actions/ansible-docs-build-init@main
with:
collections: amazon.aws
lenient: false
fail-on-error: true
uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-pr.yml@main
with:
init-lenient: false
init-fail-on-error: true

- name: Build
id: build
uses: ansible-community/github-docs-build/actions/ansible-docs-build-html@main
with:
artifact-upload: false

build-docs:
permissions:
Expand Down

0 comments on commit 5b3885a

Please sign in to comment.