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 7, 2023
1 parent 61aaebb commit 50aee3b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/schedule-monthly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@ jobs:
uses: actions/download-artifact@v3
with:
name: trim_job_artifact
# path: _data/external/inactive-Members.json
path: _data/external/inactive-Members.json

# - name: Extract artifact
# id: extract-artifact
# run: unzip trim_job_artifact.zip

# - name: Use download
# run: |
# const fs = require('fs');
# const artifactPath = '_data/external/inactive-Members.json';
# const artifactContent = fs.readFileSync(artifactPath, 'utf8');
# console.log(artifactContent);
- name: Use download
run: |
const fs = require('fs');
const artifactPath = '_data/external/inactive-Members.json';
const artifactContent = fs.readFileSync(artifactPath, 'utf8');
console.log(artifactContent);
# 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
Expand All @@ -77,7 +77,8 @@ jobs:
github-token: ${{ secrets.TEST_GHAS }}
script: |
const fs = require('fs');
const artifactContent = JSON.parse(fs.readFileSync('trim_job_artifact', 'utf8'));
const artifactPath = '_data/external/inactive-Members.json';
const artifactContent = fs.readFileSync(artifactPath, 'utf8');
console.log(artifactContent);
const script = require('./github-actions/trigger-schedule/list-inactive-members/create-new-issue.js');
const createNewIssue = script({g: github, c: context}, artifactContent);
Expand Down

0 comments on commit 50aee3b

Please sign in to comment.