Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Celetor committed Oct 3, 2024
1 parent 88129fc commit f4f210e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,13 @@ jobs:
path: actions

- name: Get The Lastest Commit
working-directory: actions
run: |
git clone --depth 1 -b ${{ matrix.branchName }} ${{ matrix.repoUrl }} tmp_tvbox
cd tmp_tvbox
git clone --depth=1 -b ${{ matrix.branchName }} ${{ matrix.repoUrl }} TVBoxOSC
cd TVBoxOSC
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)
#commit=$(curl -sL ${{ matrix.repoUrl }}/commits/${{ matrix.branchName }} |grep -o '/commit/[a-z0-9]\+' |head -1 | cut -d\/ -f3)
echo "commit: $commit"
cd ../actions
if ! grep -q "$commit" ./log/${{ matrix.userName }}.txt; then
echo "commit=$commit" >> $GITHUB_ENV
echo "commit_id=${commit:0:7}" >> $GITHUB_ENV
Expand All @@ -62,8 +60,10 @@ jobs:
- name: Clone Source Code
if: ${{ env.commit }}
working-directory: TVBoxOSC
run: |
git clone -b ${{ matrix.branchName }} ${{ matrix.repoUrl }} TVBoxOSC
#git clone -b ${{ matrix.branchName }} ${{ matrix.repoUrl }} TVBoxOSC
git fetch --unshallow
- name: Compress Source Code
if: ${{ env.commit }}
Expand Down

0 comments on commit f4f210e

Please sign in to comment.