Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Last active May 7, 2023 19:18
Show Gist options
  • Select an option

  • Save KyMidd/62b1a35bc0b7004c8a0a7f85ca48f641 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/62b1a35bc0b7004c8a0a7f85ca48f641 to your computer and use it in GitHub Desktop.
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