Skip to content

Add career-copilot project #3062

Add career-copilot project

Add career-copilot project #3062

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@v6
with:
ref: gh-pages
- name: Setup Ruby
uses: ruby/setup-ruby@e65c17d16e57e481586a6a5a0282698790062f92
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@d4d6b0936434b21bc8345ad45a440c5f7d2c40ff
with:
message: ${{ steps.run_script.outputs.message }}
GITHUB_TOKEN: ${{ secrets.SHIFTBOT_TOKEN }}