I am having a reusable workflow running two separate reusable workflows: a get-variable, which outputs a long string variable and a use-variable. My use-variable workflow is simply looking like this at the moment:
use-variable:
needs: get-variable
runs-on: ubuntu-latest
name: Reuse variable
steps:
- uses: actions/checkout@v4
- name: Run Integration Tests
run: |
TMP_VAR=${{ needs.get-variable.outputs.MY_VARIABLE }}
The TMP_VAR=${{ needs.get-variable.outputs.MY_VARIABLE }} prints automatically in the logs the content of MY_VARIABLE which is not what I want in my case and I cannot find a way to prevent this. I have tried to use ::add-mask::${{ needs.get-auth-token.outputs.API_TOKEN }} to mask it and yet the content is shown during the assignment even though I am not echoing anything. Is there a way to prevent this from happening by keeping the two workflows as they are right now, hence get-variable being a workflow which outputs the variable and use-variable a separate workflow that reuses that output?