Skip to content

Commit

Permalink
patch 20
Browse files Browse the repository at this point in the history
patch 20
  • Loading branch information
piotrnarajowski committed Jul 17, 2024
1 parent d9701e9 commit 2712a76
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/check_for_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def main():
mb = run_cmd(f"git merge-base {upstream} {commit}")
upstream = mb[0]

base_ref = os.environ.get('GITHUB_BASE_REF')
head_ref = os.environ.get('GITHUB_HEAD_REF')

# remote = subprocess.run(
# ['git', 'remote', '-v'],
# stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, check=True
Expand All @@ -52,7 +55,7 @@ def main():
# print(f"Rev parse result: HEAD, HEAD^, master. origin/master {rev_parse}")

result = subprocess.run(
['git', 'diff', '--name-only', 'GITHUB_BASE_REF', 'GITHUB_HEAD_REF', '--', 'autopts/wid/'],
['git', 'diff', '--name-only', base_ref, head_ref, '--', 'autopts/wid/'],
stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, check=True
)

Expand Down

0 comments on commit 2712a76

Please sign in to comment.