FOUR-12515: Remove Script Executors References from Default PM Blocks #15
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: Generate Index | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize, edited] | |
jobs: | |
build: | |
name: "Generate index and readme" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Setup PHP | |
uses: shivammathur/setup-php@2.27.1 | |
with: | |
php-version: '8.2' | |
- name: Check committer | |
id: check | |
run: | | |
COMMITTER=$(git log -1 --pretty=format:'%ae') | |
echo "COMMITTER=$COMMITTER" >> $GITHUB_ENV | |
- name: Run script | |
run: php .github/workflows/scripts/generate_index.php | |
if: env.COMMITTER != 'action@github.com' | |
- name: Commit and push if it changed | |
run: | | |
git diff | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git commit -am "build: update index and readme" || exit 0 | |
git push |