Skip to content

Commit

Permalink
feat: test
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglonghong committed Aug 4, 2024
1 parent d500ec9 commit 7a8c27d
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/build-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,27 @@ name: Example Workflow
on: [push]

jobs:
example_job:
set_env_var:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Code
uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Set Environment Variable
run: |
echo "MY_ENV_VAR=HelloWorld" >> $GITHUB_ENV
example_job:
runs-on: ubuntu-latest
needs:
[
set_env_var,
]
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Get Environment Variable
run: echo "The value of MY_ENV_VAR is ${{ env.MY_ENV_VAR }}"

Expand Down

0 comments on commit 7a8c27d

Please sign in to comment.