Update reproducer README.md #19
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
# GitHub Actions Workflow responsible for cleaning up the template repository from | |
# the template-specific files and configurations. This workflow is supposed to be triggered automatically | |
# when a new template-based repository has been created. | |
name: Template Cleanup | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
template-cleanup: | |
name: Template Cleanup | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
if: github.repository != 'react-native-community/reproducer-react-native' | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Cleanup | |
run: ./.github/template-cleanup.sh | |
- name: Commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add --all | |
git commit -m "Template cleanup" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
branch: main | |
github_token: ${{ secrets.GITHUB_TOKEN }} |