Skip to content

Commit 4b94f4c

Browse files
committed
Added variable write test
1 parent d2855ba commit 4b94f4c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Write variable
2+
on:
3+
push:
4+
workflow_dispatch:
5+
permissions:
6+
contents: write
7+
jobs:
8+
run:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- run: echo olod value = '${{vars.TEST_VARIABLE2}}'
12+
- run: gh variable set TEST_VARIABLE2 --body "Last run was ${{github.run_number}}" --repo ${{github.repository}}
13+
env:
14+
GH_TOKEN: ${{github.token}}

0 commit comments

Comments
 (0)