GitHub actions automations #3
Workflow file for this run
This file contains hidden or 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: "Automation: Update GH Project" | |
on: | |
pull_request: | |
types: [opened, reopened] | |
issues: | |
types: [opened, reopened] | |
jobs: | |
add-to-project: | |
name: 'Add item to "Python SDK" project' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
project-url: https://github.com/orgs/getsentry/projects/235 | |
github-token: ${{ secrets.GH_PROJECT_AUTOMATION }} | |
add-label: | |
name: Add POTel label if needed | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'potel-base' | |
steps: | |
- uses: actions-ecosystem/action-add-labels@v1 | |
with: | |
labels: "Project: POTel" | |
github_token: ${{ secrets.GITHUB_TOKEN }} |