title: boolean env var in Github actions
body: <p>I have a boolean env var TAG_EVENT and I update it in one of the steps to false (I also print it and I see it false) but for some reason, the last step is not executed although TAG_EVENT is false. I appreciate help with that,</p>
  <pre><code>on:
   workflow_dispatch:
  
   env:
   TAG_EVENT: ${{ true }}
  
   jobs:
     push_images:
     name: Push images
     runs-on: ubuntu-latest
     if: ${{ github.event_name != 'pull_request' }}
     steps:
     - id: version
       name: Infer version
       run: |
          version=&quot;${GITHUB_REF#refs/tags/v}&quot;
          echo $version
          if  [[ $version == refs/* ]] ;
           then
             echo 'TAG_EVENT=false' &gt;&gt; $GITHUB_ENV
             branch=&quot;${GITHUB_REF#refs/heads/}&quot;
             version=$branch
  
         fi
         echo ::set-output name=version::$version
     - name: Publish latest image tag for release
       if: github.event_name != 'pull_request' &amp;&amp; TAG_EVENT == false
       run: |
         echo &quot;printme!!!&quot;
  </code></pre>