Last active
May 7, 2023 19:18
-
-
Save KyMidd/62b1a35bc0b7004c8a0a7f85ca48f641 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Passing File Jobs v1 | |
| on: workflow_dispatch | |
| jobs: | |
| pass-var: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set deploy location | |
| id: set-var | |
| run: | | |
| ENVIRONMENT=dev | |
| echo "The ENVIRONMENT var is: $ENVIRONMENT" | |
| echo "ENVIRONMENT=$ENVIRONMENT" | tee -a $GITHUB_ENV env.vars | |
| - name: Cache Envs | |
| id: cache-envs | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: env-cache-${{ github.run_id }} | |
| retention-days: 365 | |
| path: env.vars |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment