From 79d0914cbe3cea7d7e275936951845e3f9cab466 Mon Sep 17 00:00:00 2001 From: Will Gillis <40799239+t-will-gillis@users.noreply.github.com> Date: Tue, 5 Sep 2023 22:18:05 -0700 Subject: [PATCH] Update schedule-monthly.yml --- .github/workflows/schedule-monthly.yml | 62 +++++++++++--------------- 1 file changed, 26 insertions(+), 36 deletions(-) diff --git a/.github/workflows/schedule-monthly.yml b/.github/workflows/schedule-monthly.yml index 85b2036569..5b5db1be29 100644 --- a/.github/workflows/schedule-monthly.yml +++ b/.github/workflows/schedule-monthly.yml @@ -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/git-auto-commit-action@v4.16.0 - 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 - - - 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);