Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork846
Update Project Profile: Civic Tech Jobs Add Gowthami Cherukuri#1690
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:Member Activity Trigger | |
| on: | |
| workflow_call: | |
| issues: | |
| types:[opened, assigned, unassigned, closed, reopened] | |
| issue_comment: | |
| types:[created] | |
| pull_request_target: | |
| types:[opened, closed, reopened] | |
| pull_request_review: | |
| types:[submitted] | |
| pull_request_review_comment: | |
| types:[created] | |
| # Limits default token permissions | |
| permissions: | |
| contents:read | |
| issues:write | |
| pull-requests:write | |
| jobs: | |
| Gather-Activity-Event-Information: | |
| runs-on:ubuntu-latest | |
| if:github.repository == 'hackforla/website' | |
| steps: | |
| -uses:actions/checkout@v5 | |
| -name:Gather Event Details | |
| id:gather-event-details | |
| uses:actions/github-script@v8 | |
| with: | |
| # github-token defaults to `github.token` for 'pull_request_review' | |
| github-token:${{ secrets.HACKFORLA_GRAPHQL_TOKEN != '' && secrets.HACKFORLA_GRAPHQL_TOKEN || github.token }} | |
| script:| | |
| const script = require('./github-actions/activity-trigger/activity-trigger.js'); | |
| const activities = script({github, context}); | |
| return activities; | |
| -if:${{ steps.gather-event-details.outputs.result != '[]' }} | |
| name:Post to Skills Issue | |
| id:post-to-skills-issue | |
| uses:actions/github-script@v8 | |
| with: | |
| github-token:${{ secrets.HACKFORLA_GRAPHQL_TOKEN != '' && secrets.HACKFORLA_GRAPHQL_TOKEN || github.token }} | |
| script:| | |
| const activities = ${{ steps.gather-event-details.outputs.result }}; | |
| const script = require('./github-actions/activity-trigger/post-to-skills-issue.js'); | |
| for (const activity of activities) { | |
| await script({github, context}, activity); | |
| } |