Skip to content

Commit

Permalink
Update wr-schedule-monthly.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
t-will-gillis authored Nov 18, 2023
1 parent 6994f1f commit 0153834
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/wr-schedule-monthly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ jobs:
steps:
- run: echo "The 'Schedule Monthly' workflow succeeded. Continuing."

- name: Get owner url
id: get-owner-url
uses: actions/github-script@v7
with:
script: |
const ownerURL = context.payload.repository.html_url;
console.log("Owner url: " + ownerURL);
return ownerURL;
- name: Get issue number
id: get-issue-number
uses: actions/github-script@v7
Expand All @@ -31,16 +40,9 @@ jobs:
page: 1,
});
const newIssueNumber = newIssue['data'][0]['number'];
console.log(newIssueNumber);
console.log("Latest issue number: " + newIssueNumber);
return newIssueNumber;
- name: Get owner url
id: get-owner-url
uses: actions/github-script@v7
with:
script: |
const owner = context.payload.repository.html_url;
console.log(owner);
return owner;
- name: Auto close issue
run: gh issue close --comment "This issue is automatically closed after creation." "${{ steps.get-owner-url.outputs.result }}/issues/${{ steps.get-issue-number.outputs.result }}"
env:
Expand Down

0 comments on commit 0153834

Please sign in to comment.