From 8e3b779a0a67d00b0fe31078cadd12ef68d65264 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 10 Sep 2024 05:38:16 +0000 Subject: [PATCH] Template cleanup --- .github/template-cleanup.sh | 12 ----------- .github/template-cleanup/README.md | 13 ------------ .github/workflows/cleanup.yml | 33 ------------------------------ README.md | 19 ++++++++--------- 4 files changed, 9 insertions(+), 68 deletions(-) delete mode 100755 .github/template-cleanup.sh delete mode 100644 .github/template-cleanup/README.md delete mode 100644 .github/workflows/cleanup.yml diff --git a/.github/template-cleanup.sh b/.github/template-cleanup.sh deleted file mode 100755 index a728630..0000000 --- a/.github/template-cleanup.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -IFS='/' read -ra REPOARR <<< "$GITHUB_REPOSITORY" -echo "Repository: ${REPOARR[0]}" -echo "Repository: ${REPOARR[1]}" - -rm README.md -mv .github/template-cleanup/README.md README.md -rm .github/workflows/cleanup.yml -rm .github/template-cleanup.sh -sed -i -e "s~%REPOSITORY%~$GITHUB_REPOSITORY~g" README.md -sed -i -e "s~%NAME%~${REPOARR[1]}~g" README.md diff --git a/.github/template-cleanup/README.md b/.github/template-cleanup/README.md deleted file mode 100644 index 2922166..0000000 --- a/.github/template-cleanup/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# %NAME% - -![Build](https://github.com/%REPOSITORY%/workflows/Pre%20Merge%20Checks/badge.svg) - -This is your new React Native Reproducer project. - -## Reproducer todo list - -- [x] Create a new reproducer project. -- [ ] Git clone your repository locally. -- [ ] Edit the project to reproduce the failure you're seeing. -- [ ] Push your changes, so that Github Actions can run the CI. -- [ ] Make sure the repository is public and share the link with the issue you reported. diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml deleted file mode 100644 index 4738681..0000000 --- a/.github/workflows/cleanup.yml +++ /dev/null @@ -1,33 +0,0 @@ -# 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 "action@github.com" - 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 }} diff --git a/README.md b/README.md index 4bcf441..fa00792 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,13 @@ -# React Native Reproducer +# ptest -This is the React Native **reproducer** template. +![Build](https://github.com/prashantpadhariya1137/ptest/workflows/Pre%20Merge%20Checks/badge.svg) -You can use this template to create a minimal, complete, and reproducible project that the community can use to understand what's your problem. You can read more about the principles of a good reproducible project [here](https://stackoverflow.com/help/mcve). +This is your new React Native Reproducer project. -This template is up to date with `react-native@latest` as you can find it on [npm](https://www.npmjs.com/package/react-native/v/latest). +## Reproducer todo list -## How to use this repository - -1. Click on [![Use this template](https://img.shields.io/badge/-Use%20this%20template-brightgreen)](https://github.com/cortinico/reproducer-react-native/generate) button to create a new repository starting from this one. -2. Git clone your repository locally. -3. Edit the project to reproduce the failure you're seeing. -4. Push your changes, so that Github Actions can run the CI. +- [x] Create a new reproducer project. +- [ ] Git clone your repository locally. +- [ ] Edit the project to reproduce the failure you're seeing. +- [ ] Push your changes, so that Github Actions can run the CI. +- [ ] Make sure the repository is public and share the link with the issue you reported.