Skip to content

Commit b5446e4

Browse files
committed
TestWorkflow: env test
1 parent 8ef112b commit b5446e4

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

.github/workflows/TestWorkflow.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,31 @@ on:
77
description: "JSON array of branches: ['18','20'] (no spaces) or leave blank for all current branches."
88
required: false
99
type: string
10-
schedule:
11-
# Times are UTC
12-
- cron: '5,15,25,35,45,55 * * * *'
1310

1411
env:
15-
ACTIONS_OWNER: asterisk
16-
ACTIONS_REPO: asterisk-ci-actions
17-
ACTIONS_BRANCH: main-test-native
18-
SCRIPT_DIR: ${{ github.workspace }}/asterisk-ci-actions/scripts
19-
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
20-
RUN_ID: ${{ github.id }}
21-
WIKIDOC_BRANCHES: ${{ inputs.branches || vars.WIKIDOC_BRANCHES }}
12+
FROM_WF: "from workflow"
2213

2314
jobs:
2415
Job1:
2516
runs-on: ubuntu-latest
17+
env:
18+
FROM_JOB: "from job"
2619
defaults:
2720
run:
2821
shell: bash
2922
steps:
23+
# ACTIONS_PATH, SCRIPT_DIR, NORMALIZED_BRANCH env vars
24+
- name: GetActionsRepo
25+
uses: asterisk/asterisk-ci-actions/GetActionsRepo@main-pr-target
26+
3027
- name: DumpEnvironment
3128
uses: asterisk/asterisk-ci-actions/DumpEnvironmentAction@main
32-
with:
33-
save_output: true
3429

35-
- name: test
30+
- name: printenv
31+
env:
32+
FROM_STEP: "from step"
33+
SSS: ${{ secrets.SOME_SUPER_SECRET }}
3634
run: |
37-
echo "BRANCHES: ${WIKIDOC_BRANCHES}"
35+
FROM_STEP_SHELL="from step shell"
36+
export FROM_STEP_SHELL_EXPORTED="from step shell exported"
37+
${SCRIPT_DIR}/printEnv.sh

scripts/printEnv.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
printenv | sort

0 commit comments

Comments
 (0)