Update hello.sh #12
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: Run Custom Script | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
run_script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Print working directory | |
run: pwd # 打印当前工作目录 | |
- name: List files | |
run: ls -al # 列出当前目录下的文件 | |
- name: Run custom script | |
run: | | |
#cd path/to/script/directory | |
#echo "Hello World!" | |
# 执行脚本文件 | |
sudo sh ./hello.sh |