Iteration Plan for 2024-11 #8 #413
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: Create or Update Iteration Plan | |
on: | |
issues: | |
types: [opened, edited, deleted, transferred, pinned, unpinned, closed, reopened, assigned, unassigned, labeled, unlabeled, locked, unlocked, milestoned, demilestoned] | |
jobs: | |
create-update-issue: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Log event details | |
run: | | |
echo "Event: ${{ github.event_name }}" | |
echo "Action: ${{ github.event.action }}" | |
echo "Issue: ${{ github.event.issue.title }} ${{ github.event.issue.number }}" | |
- name: Check issue title | |
id: check_title | |
run: echo "skip=$(echo '${{ github.event.issue.title }}' | grep -q 'Iteration Plan for' && echo true || echo false)" >> $GITHUB_OUTPUT | |
# run: echo "::set-output name=skip::$(echo '${{ github.event.issue.title }}' | grep -q 'Iteration Plan for' && echo true || echo false)" | |
- name: Check out the repository | |
if: steps.check_title.outputs.skip == 'false' | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
if: steps.check_title.outputs.skip == 'false' | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
if: steps.check_title.outputs.skip == 'false' | |
run: npm install --prefix .github/workflows | |
- name: Run GitHub Script | |
if: steps.check_title.outputs.skip == 'false' | |
run: node .github/workflows/github.js | |
env: | |
ACTIONS_TOKEN: ${{ secrets.ACTIONS_TOKEN }} |