-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (52 loc) · 1.48 KB
/
githubenv.yml
File metadata and controls
64 lines (52 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: 🍏GitHub Environment Variables
env:
Top: ${{secrets.TOP_SECRET_MADICO}}
on:
push:
branches:
- "main"
workflow_dispatch:
jobs:
ubuntu-env-variables:
runs-on: ubuntu-latest
steps:
- name: List environment variables
run: env
windows-env-variables:
runs-on: windows-latest
steps:
- name: List environment variables
run: env
macos-env-variables:
runs-on: macos-latest
steps:
- name: List environment variables
run: env
print-default-vars:
runs-on: windows-latest
steps:
- name: Print default GitHub environment variables
run: |
Write-Host "GITHUB_ACTION: $env:GITHUB_ACTION"
Write-Host "GITHUB_ENV: $env:GITHUB_ENV"
Write-Host "GITHUB_JOB: $env:GITHUB_JOB"
Write-Host "RUNNER_NAME: $env:RUNNER_NAME"
Write-Host "GITHUB_JOB: $env:GITHUB_JOB"
deployment:
runs-on: windows-latest # Correct OS runner
steps:
- name: Print secret
run: |
Write-Host "my_top_secret: ${{secrets.TOP_SECRET_MADICO}}"
write-host "number1"
- name: print secret
env:
Top_secret: ${{secrets.TOP_SECRET_MADICO}}
run: |
write-host "Top_secret: ${{env.Top_secret}}"
- name: new print
run: |
write-host "secret called from form another step:${{env.Top_secret}}"
- name: Top variable
run: |
write-host "${{env.top}}"