Skip to content

Commit

Permalink
Merge pull request #114 from ReChronoRain/heinu123-patch-3
Browse files Browse the repository at this point in the history
修复pull_request时工作流报错
  • Loading branch information
elysias123 authored Dec 2, 2023
2 parents 340eb98 + 1990738 commit a596ce7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ jobs:
- name: commit
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo "commit=${{ github.event.head_commit.message }}" >> $GITHUB_ENV
echo "commit='${{ github.event.head_commit.message }}'" >> $GITHUB_ENV
else
mkdir -p ${{ github.workspace }}/git_clone
git clone ${{ github.server_url }}/${{ github.repository }} ${{ github.workspace }}/git_clone -b ${{ github.ref_name }}
cd ${{ github.workspace }}/git_clone
echo "commit=$(git log ${{ github.event.before }}..${{ github.event.after }} --pretty=format:'%h %s')" >> $GITHUB_ENV
echo "commit='$(git log ${{ github.event.before }}..${{ github.event.after }} --pretty=format:'%h %s')'" >> $GITHUB_ENV
fi
- name: Post to Canary Channel
Expand Down

0 comments on commit a596ce7

Please sign in to comment.