Add to project #4
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: Add to project | |
on: | |
issues: | |
types: | |
- labeled | |
jobs: | |
add-to-project: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dump GitHub context | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: echo "$GITHUB_CONTEXT" | |
- name: Check label | |
run: | | |
echo "Label name: ${{ github.event.label.name }}" | |
echo "Is contributor profile?: ${{ github.event.label.name == 'contributor profile' }}" | |
- name: Add issue to project | |
if: github.event.label.name == 'contributor profile' | |
uses: actions/add-to-project@v0.5.0 | |
with: | |
project-url: https://github.com/orgs/open-austin/projects/10 | |
github-token: ${{ secrets.PAT_SECRET }} | |
- name: Action result | |
run: echo "Action completed" |