From f4d8cd5ee3deee96886030534b07299620091d0e Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Thu, 14 Dec 2023 22:19:54 +0000 Subject: [PATCH] separate jobs, use artifact subdirectory --- .github/workflows/course-schedule.yml | 18 ------------------ .github/workflows/pr-comments.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/pr-comments.yml diff --git a/.github/workflows/course-schedule.yml b/.github/workflows/course-schedule.yml index 292a9eb4c1f..1c865c2e880 100644 --- a/.github/workflows/course-schedule.yml +++ b/.github/workflows/course-schedule.yml @@ -24,21 +24,3 @@ jobs: if-no-files-found: error retention-days: 1 - course-schedule-comment: - runs-on: ubuntu-latest - needs: course-schedule - name: Post Course Schedule to PR - permissions: - pull-requests: write - steps: - - name: Download Schedule Artifact - uses: actions/download-artifact@v4 - with: - name: course-schedule - path: course-schedule.md - - - name: Comment PR - uses: thollander/actions-comment-pull-request@v2 - with: - filePath: course-schedule.md - comment_tag: course-schedule diff --git a/.github/workflows/pr-comments.yml b/.github/workflows/pr-comments.yml new file mode 100644 index 00000000000..44da9c3d8a2 --- /dev/null +++ b/.github/workflows/pr-comments.yml @@ -0,0 +1,26 @@ +name: "Course Schedule Updates" +on: + # TODO: _target + - pull_request + +jobs: + course-schedule-comment: + runs-on: ubuntu-latest + needs: course-schedule + name: Post Course Schedule to PR + permissions: + pull-requests: write + steps: + - name: Download Schedule Artifact + uses: actions/download-artifact@v4 + with: + # This artifact is from the course-schedule job. + name: course-schedule + path: artifact + + - name: Comment PR + uses: thollander/actions-comment-pull-request@v2 + with: + filePath: artifact/course-schedule.md + comment_tag: course-schedule +