From e4b0f6d28a872f209dc8ca907fce3298cdcbd8d4 Mon Sep 17 00:00:00 2001 From: nadin Date: Mon, 21 Oct 2024 18:43:51 +0300 Subject: [PATCH] test pr num --- .github/workflows/blockifier_ci.yml | 2 +- .github/workflows/updload_artifacts.yml | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/blockifier_ci.yml b/.github/workflows/blockifier_ci.yml index 524284b..86eaac9 100644 --- a/.github/workflows/blockifier_ci.yml +++ b/.github/workflows/blockifier_ci.yml @@ -12,7 +12,7 @@ on: - edited paths: # Other than code-related changes, all changes related to the native-blockifier build-and-push - # process should trigger the build (e.g., changes to the Dockerfile, build scripts, etc.). + # process should trigger the build (e.g., changes to the Dockerfile, build scripts, etc.). t - ".github/workflows/blockifier_ci.yml" - "upload_to_gcp.txt" - ".github/workflows/updload_artifacts.yml" diff --git a/.github/workflows/updload_artifacts.yml b/.github/workflows/updload_artifacts.yml index df510c0..152d61c 100644 --- a/.github/workflows/updload_artifacts.yml +++ b/.github/workflows/updload_artifacts.yml @@ -26,19 +26,19 @@ jobs: - name: the workflow run URL run: | - echo "The workflow run URL is: $GITHUB_RUN_URL" + echo "The workflow run URL is: ${{ env.GITHUB_RUN_URL }}" + echo "The workflow run GITHUB_API_URL is: ${{ env.GITHUB_API_URL}}" + echo "*******" + echo "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" + echo "*******" + echo "The workflow run number is: ${{ github.run_number }}" + echo "The workflow run name is: ${{ github.run_id }}" + - name: Get PR Number # if: github.event.workflow_run.pull_requests != '' run: | - if [[ "${{ toJson(github.event.workflow_run.pull_requests) }}" != "[]" ]]; then - pr_number=$(echo "${{ toJson(github.event.workflow_run.pull_requests) }}" | jq -r '.[0].number') - echo "PR number is $pr_number" - echo "PR_NUMBER=$pr_number" >> $GITHUB_ENV - else - echo "No pull request found" - echo "PR_NUMBER=" >> $GITHUB_ENV - fi + echo " pr num: ${{ github.event.workflow_run.event.number }}" - name: Authenticate with GCS uses: "google-github-actions/auth@v2"