Skip to content

Commit

Permalink
Test with PR creation and files changed
Browse files Browse the repository at this point in the history
  • Loading branch information
sshrihar committed Sep 25, 2024
1 parent a90c300 commit e21cb83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
run: |
changed_files=$(git diff --name-only HEAD^ HEAD)
num_changed_files=$(echo "$changed_files" | wc -l)
echo "Number of Files changed=$num_changed_files"
echo "FILES_CHANGED=$num_changed_files" >> "$GITHUB_OUTPUT"
check_pr_open:
Expand All @@ -87,6 +88,7 @@ jobs:
run: |
BRANCH_NAME=$(echo "${GITHUB_REF}" | cut -d'/' -f4)
pr_number=$(gh pr list --head "hosted/$BRANCH_NAME" --state open --json number --jq '.[0].number')
echo "Checked PR number: $pr_number"
echo "PR_OPEN=$pr_number" >> "$GITHUB_OUTPUT"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit e21cb83

Please sign in to comment.