Skip to content

Updated project stats #268

Updated project stats

Updated project stats #268

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@v3
with:
ref: gh-pages
- name: Setup Ruby
uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939
with:
ruby-version: '3.2'
bundler-cache: true
cache-version: 0
- name: Run script to review changed projects
id: run_script
run: |
MESSAGE=$(bundle exec ruby scripts/review_changes.rb)
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 }}
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
GIT_REMOTE_URL: ${{ github.event.pull_request.head.repo.clone_url }}
GITHUB_TOKEN: ${{ secrets.SHIFTBOT_TOKEN }}
- uses: marocchino/sticky-pull-request-comment@f6a2580ed520ae15da6076e7410b088d1c5dddd9
with:
message: ${{ steps.run_script.outputs.message }}
GITHUB_TOKEN: ${{ secrets.SHIFTBOT_TOKEN }}