Update README.md #113
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: 'Update Docs' | |
on: | |
push: | |
branches: [ "master" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
update_docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
path: 'EEex' | |
- uses: actions/checkout@v3 | |
with: | |
repository: 'Bubb13/EEex-Docs' | |
path: 'EEex-Docs' | |
token: ${{ secrets.DOCS_UPDATE_SECRET }} | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '20' | |
check-latest: true | |
- name: Run UpdateDocs | |
run: java -cp EEex/.github/workflows/java/out/production/java/ UpdateDocs ./EEex/EEex/copy "./EEex-Docs/source/EEex Functions" | |
- name: Push to EEex-Docs | |
run: | | |
cd EEex-Docs | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git add . | |
if git commit -m "Automatic EEex Functions Update" -m "${{ github.event.repository.full_name }}@${{ github.event.after }}"; then | |
git push https://github.com/Bubb13/EEex-Docs | |
else | |
echo "Docs already up-to-date, exiting..." | |
fi |