Skip to content

Commit

Permalink
Remove checkout PR branch from required-field-check (#2471)
Browse files Browse the repository at this point in the history
* Update required-field-check.yml

* remove checkout PR branch
  • Loading branch information
varadarajan-tw authored Oct 1, 2024
1 parent 07086e1 commit e4f699d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/required-field-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ jobs:
REQUIRED_FIELDS_MAIN_BRANCH=$(./bin/run list-required-fields -p ${{ steps.get_files.outputs.files }} | jq -c .)
echo "REQUIRED_FIELDS_MAIN_BRANCH=$REQUIRED_FIELDS_MAIN_BRANCH" >> $GITHUB_ENV
- name: Checkout the PR branch again
if: steps.get_files.outputs.no_files_changed != 'true'
run: git checkout ${{ github.head_ref }}

- name: Add comment on PR if there is diff in required fields
if: steps.get_files.outputs.no_files_changed != 'true'
uses: actions/github-script@v7
Expand Down

0 comments on commit e4f699d

Please sign in to comment.