Skip to content

Revert "[#14802] Add resource for health check" #2

Revert "[#14802] Add resource for health check"

Revert "[#14802] Add resource for health check" #2

Workflow file for this run

name: Synchronize changes to the website
on:
push:
branches:
- 'main'
- '14.0.x'
- '15.*.x'
paths:
- 'documentation/**'
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Maven
uses: s4u/[email protected]
with:
java-version: 17
maven-version: 3.9.0
- name: Build docs with Maven
run: mvn install -Pdistribution -pl documentation -am
- name: Clone infinispan.github.io
uses: actions/checkout@master
with:
repository: infinispan/infinispan.github.io
ref: master
path: infinispan.github.io
name: Copy docs to version

Check failure on line 38 in .github/workflows/sync_docs.yml

View workflow run for this annotation

GitHub Actions / Synchronize changes to the website

Invalid workflow file

The workflow is not valid. .github/workflows/sync_docs.yml (Line: 38, Col: 7): 'name' is already defined .github/workflows/sync_docs.yml (Line: 39, Col: 7): Unexpected value 'run'
run: |
cp -r documentation/target/generated/1*/html/* infinispan.github.io/docs/${{ github.ref_name }}
- name: Commit files
run: |
cd infinispan.github.io
git config -l | grep 'http\..*\.extraheader' | cut -d= -f1 | xargs -L1 git config --unset-all
git config --global user.email "[email protected]"
git config --global user.name "Infinispan"
git add . --all
git commit -m "Synchronized core docs from ${{ github.ref }}"
- name: Push to the community site
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: 'infinispan.github.io'
destination-github-username: 'infinispan'
destination-repository-name: 'infinispan.github.io'
user-email: [email protected]
target-branch: master