Refresh Starter Script Index #4
This file contains hidden or 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
| # This is a basic workflow to help you get started with Actions | |
| name: Refresh Starter Script Index | |
| on: | |
| pull_request_target: | |
| types: | |
| - closed | |
| workflow_dispatch: | |
| jobs: | |
| if_merged: | |
| # if: github.event.pull_request.merged == true | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Reindex scripts | |
| run: | | |
| echo Preparing reindex operation... | |
| chmod +x ./dtssview.sh | |
| echo Reindexing scripts... | |
| ./dtssview.sh . > ./ScriptIndex.json | |
| - name: Push updated index | |
| run: | | |
| git config --global user.name "CodingWonders" | |
| git config --global user.email "101426328+CodingWonders@users.noreply.github.com" | |
| git add ./ScriptIndex.json | |
| git commit -am "Refreshed Script Index" | |
| git push |