Skip to content

Please invite me to the GitHub Community Organization #625

Please invite me to the GitHub Community Organization

Please invite me to the GitHub Community Organization #625

Workflow file for this run

name: Invitation
on:
issues:
types: [opened, edited] # Trigger on issue creation or edits to catch title changes
push:
branches: [main] # Only trigger on pushes to the main branch
paths:
- '.github/workflows/invitation.yml' # Trigger only on changes to this file
jobs:
process_issue_titles:
runs-on: ubuntu-latest
if: github.event_name == 'issues'
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install @octokit/rest dotenv
- name: Check and process issue by title
if: contains(github.event.issue.title, 'Please invite me to the GitHub Community Organization')
run: |
echo "Processing issue #${{ github.event.issue.number }} with title: ${{ github.event.issue.title }}"
node ./.github/scripts/process-existing-issues.js --issue-number=${{ github.event.issue.number }}
env:
ISSUE_NUMBER: ${{ github.event.issue.number }}
PROFILE_STATS_TOKEN: ${{ secrets.PROFILE_STATS_TOKEN }}