From 94df5188338a58a259e0e98a5ac1b1f8c1298c50 Mon Sep 17 00:00:00 2001 From: manongjohn Date: Fri, 28 May 2021 16:20:57 -0400 Subject: [PATCH] Fix latest nightly commit hash --- .github/workflows/linux_build.yml | 22 ++++++++++++---------- .github/workflows/macOS_build.yml | 22 ++++++++++++---------- .github/workflows/windows_build.yml | 22 ++++++++++++---------- 3 files changed, 36 insertions(+), 30 deletions(-) diff --git a/.github/workflows/linux_build.yml b/.github/workflows/linux_build.yml index b6410efb..225e393e 100644 --- a/.github/workflows/linux_build.yml +++ b/.github/workflows/linux_build.yml @@ -68,6 +68,18 @@ jobs: run: | echo "NIGHTLYDATE=$(date '+%Y-%m-%d')" >> $GITHUB_ENV echo "NIGHTLYDATETIME=$(date '+%Y-%m-%d %H:%M:%S %Z')" >> $GITHUB_ENV + - name: Create/Update Nightlies Tag + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} + run: | + git remote add nightly_repo https://tahoma2d:${{ secrets.TAHOMA2D_TOKEN }}@github.com/tahoma2d/tahoma2d_nightlies.git + git config lfs.https://tahoma2d:${{ secrets.TAHOMA2D_TOKEN }}@github.com/tahoma2d/tahoma2d_nightlies.git.lfs.locksverify false + git fetch --unshallow + git tag -f nightly + git push -f origin nightly + git tag -f nightly-${{ github.sha }} + git config --unset-all http.https://github.com/.extraheader + git push -f nightly_repo nightly-${{ github.sha }} + git remote rm nightly_repo - name: Update Latest Nightly Release if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} uses: ncipollo/release-action@v1 @@ -82,16 +94,6 @@ jobs: replacesArtifacts: true tag: nightly token: ${{ secrets.GITHUB_TOKEN }} - - name: Create Nightlies Tag - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - run: | - git remote add nightly_repo https://tahoma2d:${{ secrets.TAHOMA2D_TOKEN }}@github.com/tahoma2d/tahoma2d_nightlies.git - git config lfs.https://tahoma2d:${{ secrets.TAHOMA2D_TOKEN }}@github.com/tahoma2d/tahoma2d_nightlies.git.lfs.locksverify false - git config --unset-all http.https://github.com/.extraheader - git fetch --unshallow - git tag -f nightly-${{ github.sha }} - git push -f nightly_repo nightly-${{ github.sha }} - git remote rm nightly_repo - name: Create Nightlies Release if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} uses: ncipollo/release-action@v1 diff --git a/.github/workflows/macOS_build.yml b/.github/workflows/macOS_build.yml index 4fc849b5..ddcb3af1 100644 --- a/.github/workflows/macOS_build.yml +++ b/.github/workflows/macOS_build.yml @@ -62,6 +62,18 @@ jobs: run: | echo "NIGHTLYDATE=$(date '+%Y-%m-%d')" >> $GITHUB_ENV echo "NIGHTLYDATETIME=$(date '+%Y-%m-%d %H:%M:%S %Z')" >> $GITHUB_ENV + - name: Create/Update Nightlies Tag + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} + run: | + git remote add nightly_repo https://tahoma2d:${{ secrets.TAHOMA2D_TOKEN }}@github.com/tahoma2d/tahoma2d_nightlies.git + git config lfs.https://tahoma2d:${{ secrets.TAHOMA2D_TOKEN }}@github.com/tahoma2d/tahoma2d_nightlies.git.lfs.locksverify false + git fetch --unshallow + git tag -f nightly + git push -f origin nightly + git tag -f nightly-${{ github.sha }} + git config --unset-all http.https://github.com/.extraheader + git push -f nightly_repo nightly-${{ github.sha }} + git remote rm nightly_repo - name: Update Latest Nightly Release if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} uses: ncipollo/release-action@v1 @@ -76,16 +88,6 @@ jobs: replacesArtifacts: true tag: nightly token: ${{ secrets.GITHUB_TOKEN }} - - name: Create Nightlies Tag - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - run: | - git remote add nightly_repo https://tahoma2d:${{ secrets.TAHOMA2D_TOKEN }}@github.com/tahoma2d/tahoma2d_nightlies.git - git config lfs.https://tahoma2d:${{ secrets.TAHOMA2D_TOKEN }}@github.com/tahoma2d/tahoma2d_nightlies.git.lfs.locksverify false - git config --unset-all http.https://github.com/.extraheader - git fetch --unshallow - git tag -f nightly-${{ github.sha }} - git push -f nightly_repo nightly-${{ github.sha }} - git remote rm nightly_repo - name: Create Nightlies Release if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} uses: ncipollo/release-action@v1 diff --git a/.github/workflows/windows_build.yml b/.github/workflows/windows_build.yml index 8aa2ad20..7c3c1774 100644 --- a/.github/workflows/windows_build.yml +++ b/.github/workflows/windows_build.yml @@ -45,6 +45,18 @@ jobs: chcp 65001 #set code page to utf-8 echo ("NIGHTLYDATE=" + (Get-Date -format "yyyy-MM-dd")) >> $env:GITHUB_ENV echo ("NIGHTLYDATETIME=" + (Get-Date -format "yyyy-MM-dd HH:mm:ss UTC")) >> $env:GITHUB_ENV + - name: Create/Update Nightlies Tag + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} + run: | + git remote add nightly_repo https://tahoma2d:${{ secrets.TAHOMA2D_TOKEN }}@github.com/tahoma2d/tahoma2d_nightlies.git + git config lfs.https://tahoma2d:${{ secrets.TAHOMA2D_TOKEN }}@github.com/tahoma2d/tahoma2d_nightlies.git.lfs.locksverify false + git fetch --unshallow + git tag -f nightly + git push -f origin nightly + git tag -f nightly-${{ github.sha }} + git config --unset-all http.https://github.com/.extraheader + git push -f nightly_repo nightly-${{ github.sha }} + git remote rm nightly_repo - name: Update Latest Nightly Release if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} uses: ncipollo/release-action@v1 @@ -59,16 +71,6 @@ jobs: replacesArtifacts: true tag: nightly token: ${{ secrets.GITHUB_TOKEN }} - - name: Create Nightlies Tag - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - run: | - git remote add nightly_repo https://tahoma2d:${{ secrets.TAHOMA2D_TOKEN }}@github.com/tahoma2d/tahoma2d_nightlies.git - git config lfs.https://tahoma2d:${{ secrets.TAHOMA2D_TOKEN }}@github.com/tahoma2d/tahoma2d_nightlies.git.lfs.locksverify false - git config --unset-all http.https://github.com/.extraheader - git fetch --unshallow - git tag -f nightly-${{ github.sha }} - git push -f nightly_repo nightly-${{ github.sha }} - git remote rm nightly_repo - name: Create Nightlies Release if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} uses: ncipollo/release-action@v1