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 8f15341 commit 8ce03ca
Show file tree
Hide file tree
Showing 6 changed files with 7,827 additions and 7 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build-test-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Example Workflow

on: [push]

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

- name: Set Environment Variable
run: |
echo "MY_ENV_VAR=HelloWorld" >> $GITHUB_ENV
- name: Get Environment Variable
run: echo "The value of MY_ENV_VAR is ${{ env.MY_ENV_VAR }}"

- name: Use Environment Variable in Another Step
run: |
if [[ "${{ env.MY_ENV_VAR }}" == "HelloWorld" ]]; then
echo "The environment variable is correctly set!"
else
echo "The environment variable is not set correctly."
fi
- name: Print All Environment Variables
run: printenv
Loading

0 comments on commit 8ce03ca

Please sign in to comment.