Skip to content

Commit

Permalink
fix: 频道消息补充commit信息
Browse files Browse the repository at this point in the history
  • Loading branch information
VillagerTom committed Jul 22, 2024
2 parents 2a415cf + 3240cd9 commit f00788d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,20 @@ jobs:
outputs:
# 定义输出变量 version,以便在其他job中引用
new_version: ${{ steps.get-last-tag.outputs.tag}}
last_commit: ${{ steps.get-last-commit.outputs.last_commit }}

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 获取最后一次提交
id: get-last-commit
run: |
last_commit=$(git log -1 --pretty="%h %s" --first-parent)
echo "last_commit=$last_commit" >> $GITHUB_OUTPUT
- name: 获取最后一个tag
id: get-last-tag
run: |
Expand Down

0 comments on commit f00788d

Please sign in to comment.