测试event事件对象

测试下拉代码分支版本
This commit is contained in:
soul-walker 2024-03-25 14:51:32 +08:00
parent 3301634aa0
commit 585c32ac0d
1 changed files with 8 additions and 5 deletions

View File

@ -10,13 +10,16 @@ jobs:
steps:
- name: 测试release触发及一些参数
run: |
echo "event: ${{ github.event }}"
echo "event: author is ${{ github.event.author }}, isLatest is ${{ github.event.release.prerelease }}"
echo "event_name: ${{ github.event_name }}"
echo "ref: ${{ github.ref }}"
# - name: 检出代码
# uses: https://gitea.joylink.club/actions/checkout@v4
# with:
# submodules: recursive
- name: 检出代码
uses: https://gitea.joylink.club/actions/checkout@v4
with:
submodules: recursive
- name: 查看代码分支和版本
run: |
git branch -vv
# - name: 设置java环境
# uses: https://gitea.joylink.club/actions/setup-java@v4
# with: