This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |