From 72ee32490130fddc2021e1f0b6c2b67fa7f9a892 Mon Sep 17 00:00:00 2001 From: JGStew Date: Wed, 29 May 2024 10:04:15 -0400 Subject: [PATCH] test action set env --- .github/workflows/test_env_set.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/test_env_set.yaml diff --git a/.github/workflows/test_env_set.yaml b/.github/workflows/test_env_set.yaml new file mode 100644 index 0000000..fbd715e --- /dev/null +++ b/.github/workflows/test_env_set.yaml @@ -0,0 +1,21 @@ +--- +name: test_env_set + +# only run this job when this job itself is modified +on: + push: + paths: + - ".github/workflows/test_env_set.yaml" + branches: + - "**" + +jobs: + test_env_set: + runs-on: [ubuntu-latest] + steps: + - name: set env var + run: echo "EXAMPLESUFFIX=_dev" >> "$GITHUB_ENV" + - name: get env var + run: echo "$EXAMPLESUFFIX" + - name: get env var + run: echo "${{ env.EXAMPLESUFFIX }}"