From de333ef82c5945a6700ba76797f06f5d765d3bb7 Mon Sep 17 00:00:00 2001 From: Joseph Flinn Date: Fri, 22 Jan 2021 20:53:05 +0000 Subject: [PATCH] disabling jobs that already successfully ran. Fixing the MacOS deploy --- .github/scripts/macos/increment-version.ps1 | 2 +- .github/workflows/release.yml | 19 +++---------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/.github/scripts/macos/increment-version.ps1 b/.github/scripts/macos/increment-version.ps1 index 63787e341e..6becb67c65 100644 --- a/.github/scripts/macos/increment-version.ps1 +++ b/.github/scripts/macos/increment-version.ps1 @@ -1,6 +1,6 @@ $rootPath = $env:GITHUB_WORKSPACE; $packagePath = "$rootPath\package.json"; -$buildNumber = 100 + [int]$env:GITHUB_RUN_NUMBER; +$buildNumber = 500 + [int]$env:GITHUB_RUN_NUMBER; Write-Output "Setting build number to $buildNumber"; Write-Output "BUILD_NUMBER=$buildNumber" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append; $package = Get-Content -Raw -Path $packagePath | ConvertFrom-Json; diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5603b3ab0b..3272d5816f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,24 +9,9 @@ on: jobs: - cloc: - runs-on: ubuntu-latest - - steps: - - name: Checkout repo - uses: actions/checkout@v2 - - - name: Set up cloc - run: | - sudo apt-get update - sudo apt-get -y install cloc - - - name: Print lines of code - run: cloc --include-lang TypeScript,JavaScript,HTML,Sass,CSS --vcs git - - setup: runs-on: ubuntu-latest + if: false outputs: release_upload_url: ${{ steps.create_release.outputs.upload_url }} steps: @@ -53,6 +38,7 @@ jobs: linux: runs-on: ubuntu-latest + if: false needs: setup steps: - name: Set up Node @@ -106,6 +92,7 @@ jobs: windows: runs-on: windows-latest + if: false needs: setup steps: - name: Set up dotnet