create-global #6
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: create-global | |
on: | |
issues: | |
types: [opened] | |
jobs: | |
create-global-variable: | |
name: Job for creating and storing the global | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Python | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Create the global variable | |
env: | |
ISSUE_TITLE: ${{ github.event.issue.title }} | |
ISSUE_BODY: ${{ github.event.issue.body }} | |
run: | | |
python3 create_global_from_issue.py | |
- name: Commit and push new files to github | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
git commit -m "added public global variable" | |
git add . | |
git push |