File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 68
68
69
69
- name : Run build and test
70
70
run : |
71
- env
72
71
yarn all
72
+ env :
73
+ GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FORK : ${{ github.event.pull_request.head.repo.fork }}
73
74
74
75
- name : Verify Changed files
75
76
uses : tj-actions/verify-changed-files@v20
Original file line number Diff line number Diff line change @@ -660,7 +660,7 @@ describe('utils test', () => {
660
660
} )
661
661
describe ( 'getPreviousGitTag' , ( ) => {
662
662
// Check if the environment variable GITHUB_REPOSITORY_OWNER is 'tj-actions'
663
- const shouldSkip = process . env . GITHUB_REPOSITORY_OWNER !== 'tj-actions'
663
+ const shouldSkip = ! ! process . env . GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FORK
664
664
// Function returns the second-latest tag and its SHA
665
665
it ( 'should return the second latest tag and its SHA when multiple tags are present' , async ( ) => {
666
666
if ( shouldSkip ) {
You can’t perform that action at this time.
0 commit comments