From af1d519a14daa03fe391431e515c9ce5f04e16f8 Mon Sep 17 00:00:00 2001 From: Tim R Date: Fri, 15 Dec 2023 17:45:28 -0600 Subject: [PATCH] Why are the ifs not running --- .github/workflows/tokens-build.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tokens-build.yml b/.github/workflows/tokens-build.yml index c19f798d..ff78e915 100644 --- a/.github/workflows/tokens-build.yml +++ b/.github/workflows/tokens-build.yml @@ -61,24 +61,22 @@ jobs: if: success() && steps.diff.conclusion == 'success' working-directory: packages/tokens run: | + echo $var.BUILD_SUCCESS + echo $BUILD_SUCCESS + echo '$BUILD_SUCCESS' git commit -m 'Build latest figma tokens' git push echo 'test=built' >> 'Built latest figma tokens' - name: Set success/fail if: failure() && steps.built.conclusion == 'failure' - run: echo "BUILD_SUCCESS=false" >> "$GITHUB_ENV" + run: echo 'BUILD_SUCCESS=false' >> '$GITHUB_ENV' tokens-build-success: needs: tokens-build runs-on: ubuntu-latest steps: - - name: Use Node.js 18.x - uses: actions/setup-node@v3 - with: - registry-url: https://registry.npmjs.org/ - node-version-file: .nvmrc - cache: yarn - cache-dependency-path: yarn.lock + - name: Test output + run: echo $var.BUILD_SUCCESS - name: Tokens Build Succeeded if: ${{ vars.BUILD_SUCCESS == 'true' }} run: echo Great success!