Prepare Gallery Index #1
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
on: | |
pull_request: | |
types: [closed] | |
workflow_dispatch: | |
name: "Prepare Gallery Index" | |
jobs: | |
prepare-index: | |
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.ANY_CLA_TOKEN }} | |
- run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Any Association" | |
node tools/prepare-index.js | |
git add . | |
if ! git diff-index --quiet HEAD; then | |
git commit -m "Update Gallery Index" | |
git push origin main | |
fi |