forked from ExamProCo/Github-Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 915 Bytes
/
commands.yml
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
name: commands workflow
on:
push:
branches:
- main
jobs:
main-job:
runs-on: ubuntu-latest
steps:
- name: debug
run: echo "::debug::Test debug message"
- name: error
run: echo "::error file=commands.yml,title=Error custom title,line=3,endLine=4::Test error message"
- name: masking
id: masking
run: |
var=12345
echo "::add-mask::$var"
touch test.txt
echo $var >> test.txt
echo "key=$var" >> $GITHUB_OUTPUT
- name: print masking
run: |
cat test.txt
echo ${{ steps.masking.outputs.key}}
- name: job summary
run: |
echo "# *Summary*" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "- point 1" >> $GITHUB_STEP_SUMMARY
echo "- point 2" >> $GITHUB_STEP_SUMMARY