Skip to content

PROMIS [this is a potentially large tranche of data] #336

PROMIS [this is a potentially large tranche of data]

PROMIS [this is a potentially large tranche of data] #336

Workflow file for this run

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