Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbiggs committed Feb 22, 2024
1 parent 2b28dac commit c8ddcd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/check_migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
def list_files_on_branch():
# Run git diff command to list files on the specified branch
subprocess.run(['git', 'fetch', 'origin'])
output = subprocess.check_output(['git', 'diff', '--name-only', 'origin/develop'])
output = subprocess.check_output(['git', 'diff', '--name-only', 'origin/develop']).decode().split('\n')
if not output:
output = subprocess.check_output(['git', 'diff', '--name-only', 'origin/main'])
output = subprocess.check_output(['git', 'diff', '--name-only', 'origin/main']).decode().split('\n')
return output


Expand Down

0 comments on commit c8ddcd5

Please sign in to comment.