Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Celetor committed Oct 3, 2024
1 parent 64cf764 commit 88129fc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ jobs:
- name: Get The Lastest Commit
working-directory: actions
run: |
commit=$(curl -sL ${{ secrets.PROXY_URL }}${{ matrix.repoUrl }}/commits/${{ matrix.branchName }} |grep -o '/commit/[a-z0-9]\+' |head -1 | cut -d\/ -f3)
git clone --depth 1 -b ${{ matrix.branchName }} ${{ matrix.repoUrl }} tmp_tvbox
cd tmp_tvbox
commit=`git log --pretty=format:"%H" |grep -o '[a-z0-9]\{40\}' |head -1`
cd ..
rm -rf tmp_tvbox
#commit=$(curl -sL ${{ secrets.PROXY_URL }}${{ matrix.repoUrl }}/commits/${{ matrix.branchName }} |grep -o '/commit/[a-z0-9]\+' |head -1 | cut -d\/ -f3)
echo "commit: $commit"
if ! grep -q "$commit" ./log/${{ matrix.userName }}.txt; then
echo "commit=$commit" >> $GITHUB_ENV
Expand Down Expand Up @@ -145,7 +150,7 @@ jobs:
done
- name: Write Update Changelog
if: ${{ env.commit }}
if: ${{ env.commit && !inputs.rebuild }}
run: |
cd actions
# myLastCommit=`git log --oneline |grep -o '[a-z0-9]\{40\}' |head -1`
Expand Down

0 comments on commit 88129fc

Please sign in to comment.