Skip to content

Commit

Permalink
Merge branch 'build-ios' of https://github.com/orz12/PiliPalaX into b…
Browse files Browse the repository at this point in the history
…uild-ios
  • Loading branch information
orz12 committed Jul 22, 2024
2 parents c840ded + f00788d commit e0b1fbf
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 e0b1fbf

Please sign in to comment.