Skip to content

Commit

Permalink
Create Under Review.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KingArthur0205 authored Nov 5, 2024
1 parent 5285c9b commit ed605c8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/Under Review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Update Project Status on CSV Comment

on:
issue_comment:
types: [created]

jobs:
update-project-status:
runs-on: ubuntu-latest

steps:
- name: Check if Comment Contains CSV Attachment
id: check_csv
uses: actions/github-script@v6
with:
script: |
const commentBody = context.payload.comment.body;
const csvPattern = /\.(csv|zip)\b/;
return csvPattern.test(commentBody);
- name: Update Project Item Status to "Under Review"
if: steps.check_csv.outputs.result == 'true'
uses: nipe0324/[email protected]
with:
project-url: https://github.com/users/ben-domingue/projects/1
github-token: ${{ secrets.PROJECTS_TEST }}
field-name: Status
field-value: Under Review

0 comments on commit ed605c8

Please sign in to comment.