mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
fix ff diff generation (#18824)
* fix ff diff generation * wip * Update .github/workflows/fitness-functions.yml Co-authored-by: Mark Stacey <markjstacey@gmail.com> * Update .github/workflows/fitness-functions.yml Co-authored-by: Mark Stacey <markjstacey@gmail.com> --------- Co-authored-by: Mark Stacey <markjstacey@gmail.com>
This commit is contained in:
parent
cbcb46f704
commit
1d80029691
9
.github/workflows/fitness-functions.yml
vendored
9
.github/workflows/fitness-functions.yml
vendored
@ -11,6 +11,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
@ -24,6 +26,9 @@ jobs:
|
||||
env:
|
||||
BASE_REF: ${{ github.event.pull_request.base.ref }}
|
||||
run: |
|
||||
git fetch origin $BASE_REF
|
||||
git diff origin/$BASE_REF HEAD -- . > diff
|
||||
# The following command generates a diff of changes between the common
|
||||
# ancestor of $BASE_REF and HEAD, and the current commit (HEAD), for
|
||||
# files in the current directory and its subdirectories. The output is
|
||||
# then saved to a file called "diff".
|
||||
git diff "$(git merge-base "origin/$BASE_REF" HEAD)" HEAD -- . > ./diff
|
||||
npm run fitness-functions -- "ci" "./diff"
|
Loading…
Reference in New Issue
Block a user