diff --git a/.github/workflows/update-extensions.yml b/.github/workflows/update-extensions.yml new file mode 100644 index 0000000..2bb2928 --- /dev/null +++ b/.github/workflows/update-extensions.yml @@ -0,0 +1,14 @@ +name: Update extensions_generated_for_gpt.csv +on: [workflow_dispatch, push, pull_request] +jobs: + update-readme: + name: Update extensions_generated_for_gpt.csv + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Run csv generator + run: | + php csv2gpt.php resources.csv extensions_generated_for_gpt.csv + git config user.name "GitHub Actions" + git config user.email github-actions@github.com + if [[ `git status --porcelain` ]]; then git add . && git commit -m "extensions.csv updated by action" && git push; fi diff --git a/csv2gpt.php b/csv2gpt.php new file mode 100644 index 0000000..d8ed71f --- /dev/null +++ b/csv2gpt.php @@ -0,0 +1,50 @@ +