-
Notifications
You must be signed in to change notification settings - Fork 2.1k
38 lines (35 loc) · 1.25 KB
/
review-project-changes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
on:
pull_request_target:
types: [opened, synchronize]
name: Review
jobs:
reviewProjectChanges:
name: Project Changes
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout base branch
uses: actions/checkout@v4
with:
ref: gh-pages
- name: Setup Ruby
uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3
with:
bundler-cache: true
- name: Run script to review changed projects
id: run_script
run: |
MESSAGE=$(bundle exec ruby scripts/review_changes.rb --skip-exit-code)
echo "message: '$MESSAGE'"
echo 'message<<EOF' >> "$GITHUB_OUTPUT"
echo "$MESSAGE" >> "$GITHUB_OUTPUT"
echo 'EOF' >> "$GITHUB_OUTPUT"
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
GIT_REMOTE_URL: ${{ github.event.pull_request.head.repo.clone_url }}
GITHUB_TOKEN: ${{ secrets.SHIFTBOT_TOKEN }}
- uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728
with:
message: ${{ steps.run_script.outputs.message }}
GITHUB_TOKEN: ${{ secrets.SHIFTBOT_TOKEN }}