Hide empty spaces on livestrong.com & genius.com + try experimental mitigation for wise.com #1668
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Respond to PR | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
paths: | |
- '**.json' | |
- '**.js' | |
- '**.yml' | |
jobs: | |
auto_respond: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout base branch | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.base.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
path: base | |
- name: Checkout PR branch | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
path: pr | |
fetch-depth: 0 | |
- name: Install dependencies | |
run: | | |
npm install @octokit/rest | |
npm install diff | |
- name: Run build script on base branch | |
run: | | |
cd base | |
npm install | |
node index.js | |
cd .. | |
- name: Run build script on PR branch | |
run: | | |
cd pr | |
git config --global user.email "dax@duck.com" | |
git config --global user.name "dax" | |
git rebase origin/${{ github.event.pull_request.base.ref }} | |
npm install | |
node index.js | |
cd .. | |
- name: Create diff of file outputs | |
run: node pr/.github/scripts/diff-directories.js base/generated pr/generated > diff_output.txt | |
- name: Run auto response script | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: node pr/.github/scripts/auto-respond-pr.js |