Skip to content

Commit

Permalink
Why are the ifs not running
Browse files Browse the repository at this point in the history
  • Loading branch information
TimRoe committed Dec 15, 2023
1 parent f017a00 commit af1d519
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/tokens-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit af1d519

Please sign in to comment.