New Project Configuration - [East County E-Bikes] #31
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: Convert Issues to JSON Data | |
on: | |
issues: | |
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issues | |
types: | |
- opened | |
- edited | |
- reopened | |
- labeled | |
jobs: | |
convert_to_config: | |
runs-on: ubuntu-latest | |
steps: | |
# This step checks out a copy of your repository. | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: install dependencies | |
shell: bash -l {0} | |
run: | | |
npm install js-yaml | |
npm i @actions/core | |
npm i @actions/github | |
# This step references the directory that contains the action. | |
- name: Use local convertIssue action | |
uses: ./.github/actions/convertIssue | |
with: | |
# This controls where the JSON files are generated | |
folder: "configs/" | |
# This tells the action which GitHub Issue Form template file to use | |
issue-template: "add-new-config.yml" | |
# This controls which property we use to key the file name hash off of (values should be unique in your data set) | |
hash-property-name: "url_abbreviation" | |
- name: Commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add * | |
git commit -m "Adding data for #${{ env.IssueNumber }}" | |
git push |