Skip to content

Commit

Permalink
Update schedule-monthly.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
t-will-gillis authored Sep 6, 2023
1 parent faa21a3 commit 79d0914
Showing 1 changed file with 26 additions and 36 deletions.
62 changes: 26 additions & 36 deletions .github/workflows/schedule-monthly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,40 +36,30 @@ jobs:
token: ${{ secrets.TEST_GHAS }}
run: node github-actions/trigger-schedule/github-data/contributors-data.js

- name: Commit list
uses: stefanzweifel/[email protected]
with:
# Optional glob pattern of files which should be added to the commit
file_pattern: _data/external/inactive-members.json
commit_message: Update monthly data for inactive members
# Commit author settings
commit_author: GitHub Actions Bot <[email protected]>


Create_New_Issue:
needs: Trim_Contributors
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Create_New_Issue:
# needs: Trim_Contributors
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4

# Creates a new issue in 'hackforla/website' repo with the list populated above. creates a project card linking to this issue
- name: Create new issue
uses: actions/github-script@v6
id: create-new-issue
with:
github-token: ${{ secrets.TEST_GHAS }}
script: |
const script = require('./github-actions/trigger-schedule/list-inactive-members/create-new-issue.js');
const createNewIssue = script({g: github, c: context});
return createNewIssue;
# Comments on issue #2607, notifying leads that the above issue has been created
- name: Comment issue
uses: actions/github-script@v6
id: comment-issue
with:
github-token: ${{ secrets.HACKFORLA_BOT_PA_TOKEN }}
script: |
const script = require('./github-actions/trigger-schedule/list-inactive-members/comment-issue.js');
const newIssueNumber = ${{ steps.create-new-issue.outputs.result }};
script({g: github, c: context}, newIssueNumber);
# Creates a new issue in 'hackforla/website' repo with the list populated above. creates a project card linking to this issue
- name: Create new issue
uses: actions/github-script@v6
id: create-new-issue
with:
github-token: ${{ secrets.TEST_GHAS }}
script: |
const script = require('./github-actions/trigger-schedule/list-inactive-members/create-new-issue.js');
const createNewIssue = script({g: github, c: context});
return createNewIssue;
# Comments on issue #2607, notifying leads that the above issue has been created
- name: Comment issue
uses: actions/github-script@v6
id: comment-issue
with:
github-token: ${{ secrets.HACKFORLA_BOT_PA_TOKEN }}
script: |
const script = require('./github-actions/trigger-schedule/list-inactive-members/comment-issue.js');
const newIssueNumber = ${{ steps.create-new-issue.outputs.result }};
script({g: github, c: context}, newIssueNumber);

0 comments on commit 79d0914

Please sign in to comment.