From 133dcfd00ae85927409cbaa6927d1fa875d8a1a9 Mon Sep 17 00:00:00 2001 From: sarina Date: Tue, 1 Oct 2024 09:43:39 -0400 Subject: [PATCH] build: Fix quarterly job alert by echoing var to env --- .github/workflows/add-quarterly-GH-audit.yml | 5 +++-- .github/workflows/add-quarterly-repo-checks.yml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/add-quarterly-GH-audit.yml b/.github/workflows/add-quarterly-GH-audit.yml index 1855abc..3828d14 100644 --- a/.github/workflows/add-quarterly-GH-audit.yml +++ b/.github/workflows/add-quarterly-GH-audit.yml @@ -16,10 +16,11 @@ jobs: steps: - run: | # Audit GitHub Users - gh issue create --repo "openedx/axim-engineering" \ + new_issue_url=$(gh issue create --repo "openedx/axim-engineering" \ --title "Quarterly Audit of Github Users" \ --label "github-request" \ - --body "It is time to perform the quartely audit of GitHub users in the \`openedx\` org. The playbook for performing the audit can be found [here](https://openedx.atlassian.net/wiki/spaces/COMM/pages/3438903337/On-call+Playbooks#%F0%9F%94%8D-Audit-Github-Users)." + --body "It is time to perform the quartely audit of GitHub users in the \`openedx\` org. The playbook for performing the audit can be found [here](https://openedx.atlassian.net/wiki/spaces/COMM/pages/3438903337/On-call+Playbooks#%F0%9F%94%8D-Audit-Github-Users).") + echo "NEW_ISSUE_URL=$new_issue_url" >> $GITHUB_ENV - name: Comment on issue run: gh issue comment $NEW_ISSUE_URL --body "@openedx/axim-oncall heads up on this request" diff --git a/.github/workflows/add-quarterly-repo-checks.yml b/.github/workflows/add-quarterly-repo-checks.yml index 480d51d..c60a04d 100644 --- a/.github/workflows/add-quarterly-repo-checks.yml +++ b/.github/workflows/add-quarterly-repo-checks.yml @@ -16,10 +16,11 @@ jobs: steps: - run: | # Run repo-checks.py - gh issue create --repo "openedx/axim-engineering" \ + new_issue_url=$(gh issue create --repo "openedx/axim-engineering" \ --title "Quarterly repo-checks.py Run" \ --label "github-request" \ - --body "It is time to perform the quartely run of \`repo-checks.py\` for the \`openedx\` org. Instructions for running the script can be found [here](https://github.com/openedx/repo-tools/tree/master/edx_repo_tools/repo_checks#usage)." + --body "It is time to perform the quartely run of \`repo-checks.py\` for the \`openedx\` org. Instructions for running the script can be found [here](https://github.com/openedx/repo-tools/tree/master/edx_repo_tools/repo_checks#usage).") + echo "NEW_ISSUE_URL=$new_issue_url" >> $GITHUB_ENV - name: Comment on issue run: gh issue comment $NEW_ISSUE_URL --body "@openedx/axim-oncall heads up on this request"