Skip to content

Merge branch 'trunk' of github.com:wordpress-juanmaguitar/block-devel… #3

Merge branch 'trunk' of github.com:wordpress-juanmaguitar/block-devel…

Merge branch 'trunk' of github.com:wordpress-juanmaguitar/block-devel… #3

name: Update GitHub Contributors at examples.json
on:
workflow_dispatch:
jobs:
update-github-contributors:
runs-on: ubuntu-latest
permissions:
contents: write # Needed to push changes
steps:
- uses: actions/checkout@v4

Check failure on line 14 in .github/workflows/github-contributors.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/github-contributors.yml

Invalid workflow file

You have an error in your yaml syntax on line 14
- name: Make script executable
run: chmod +x .github/workflows/scripts/fetch_contributors.sh
- name: Update contributors
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.event.repository.name }}
run: ./.github/workflows/scripts/fetch_contributors.sh
- name: Commit changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add _data/examples.json
git diff --quiet && git diff --staged --quiet || git commit -m "Update contributors"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}