From ae8d83aa5e3e8853e099cda66065e22a9289598d Mon Sep 17 00:00:00 2001 From: Ads Dawson <104169244+GangGreenTemperTatum@users.noreply.github.com> Date: Thu, 6 Feb 2025 07:17:17 -0500 Subject: [PATCH] fix: validation needs saving as env for pass to comments --- .github/workflows/validate_robopages.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/validate_robopages.yml b/.github/workflows/validate_robopages.yml index fc70294..8692ea3 100644 --- a/.github/workflows/validate_robopages.yml +++ b/.github/workflows/validate_robopages.yml @@ -3,8 +3,8 @@ name: Validate Contributions on: pull_request: paths: - - '**.yml' - - '!.github/**' + - "**.yml" + - "!.github/**" branches: - main @@ -19,8 +19,8 @@ jobs: - name: Checkout code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 with: - fetch-depth: 0 # Fetch all history - ref: ${{ github.head_ref }} # Checkout the PR branch + fetch-depth: 0 + ref: ${{ github.head_ref }} - name: Set up Docker uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # 3.7.1 @@ -84,13 +84,16 @@ jobs: done exit $overall_status + continue-on-error: true - name: Post validation status if: always() uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #7.0.1 + env: + VALIDATION_STATUS: ${{ steps.robopages-validation.outcome == 'success' }} with: script: | - const validation_status = process.env.STATE_validation === '0' + const validation_status = process.env.VALIDATION_STATUS === 'true' ? '✅ Validation successful' : '❌ Validation failed'; const runUrl = `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`; @@ -114,4 +117,4 @@ jobs: repo: context.repo.repo, issue_number: context.issue.number, body: body - }); \ No newline at end of file + });