Skip to content

Commit

Permalink
separate jobs, use artifact subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Dec 14, 2023
1 parent 85b12a7 commit f4d8cd5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/course-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
26 changes: 26 additions & 0 deletions .github/workflows/pr-comments.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f4d8cd5

Please sign in to comment.