github actions示例
GitHub Marketplace · Actions to improve your workflow
测试 输出
Environment variables - GitHub Docs
print.ymlyaml
name: Print
on: push
jobs:
print-job:
name: Print Job
runs-on: ubuntu-latest
steps:
- name: Print a greeting
env:
MY_VAR: Hi there! My name is
NAME: Kuizuo
run: |
echo $MY_VAR $NAME.
- name: Print github info
run: |
echo github owner: ${{ github.repository_owner }}
echo github repository: ${{ github.repository }}
echo github workspace ${{ github.workspace }}