New Job #14
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: Contribution Created | |
on: | |
issues: | |
types: ["labeled"] | |
concurrency: add_jobs | |
jobs: | |
run-python-script: | |
runs-on: ubuntu-latest | |
if: github.event.label.name == 'new_job' || github.event.label.name == 'edit_job' | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.9" | |
- name: execute contribution_created.py | |
id: python_script | |
env: | |
GITHUB_EVENT_PATH: ${{ github.event_path }} | |
run: python .github/scripts/contribution_created.py $GITHUB_EVENT_PATH | |
- name: update title | |
run: gh issue edit ${{ github.event.issue.number }} --title "${{ steps.python_script.outputs.issue_title }}" | |
if: success() | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |