From 609aaecfe9d8778f3d38fc4c3198e0d41f5dcaf9 Mon Sep 17 00:00:00 2001 From: Jamil Date: Fri, 1 Jul 2022 01:35:30 -0700 Subject: [PATCH] Remove unused workflow; don't run release_drafter except on master (#775) * Remove unused workflow; don't run release_drafter except on master * use correct syntax for string literal --- .github/workflows/ci.yml | 3 +- .github/workflows/update_deps.yml | 59 ------------------------------- 2 files changed, 2 insertions(+), 60 deletions(-) delete mode 100644 .github/workflows/update_deps.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 946c0b5ab..192266e97 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -158,6 +158,7 @@ jobs: steps: - uses: release-drafter/release-drafter@v5 id: release_drafter + if: startsWith(github.ref, 'refs/heads/master') env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -203,7 +204,7 @@ jobs: - name: Build env: GIT_SHA: ${{ github.sha }} - VERSION: ${{ needs.draft-release.outputs.tag_name }} + VERSION: ${{ needs.draft-release.outputs.tag_name || '0.0.0' }} run: | echo "removing lock file in case last run sucked" sudo rm -f /opt/runner/omnibus-local/cache/git_cache/opt/firezone/index.lock diff --git a/.github/workflows/update_deps.yml b/.github/workflows/update_deps.yml deleted file mode 100644 index f44f3056f..000000000 --- a/.github/workflows/update_deps.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Update Dependencies -on: workflow_dispatch - -jobs: - install-packages: - runs-on: ${{ matrix.platform }} - env: - DEBIAN_FRONTEND: noninteractive - strategy: - # Failing fast breaks the Omnibus build cache because the job is - # interrupted abruptly, leaving behind index.lock files. - fail-fast: false - matrix: - platform: - # ARM-based - - amazonlinux2-arm64 - - centos9-arm64 - - debian10-arm64 - - debian11-arm64 - - fedora33-arm64 - - fedora34-arm64 - - fedora35-arm64 - - ubuntu1804-arm64 - - ubuntu2004-arm64 - - # x64-based - - amazonlinux2-x64 - - centos7-x64 - - centos8-x64 - - centos9-x64 - - debian10-x64 - - debian11-x64 - - fedora33-x64 - - fedora34-x64 - - fedora35-x64 - - ubuntu1804-x64 - - ubuntu2004-x64 - - opensuse15-x64 - steps: - - name: install llvm on suse-based - if: startsWith(matrix.platform, 'opensuse') - run: | - sudo zypper refresh - sudo zypper --non-interactive install llvm clang - - name: install llvm on redhat-based - if: > - startsWith(matrix.platform, 'amazonlinux') || - startsWith(matrix.platform, 'centos') || - startsWith(matrix.platform, 'fedora') || - startsWith(matrix.platform, 'fedora') - run: | - sudo yum install -y llvm clang - - name: install llvm on debian-based - if: > - startsWith(matrix.platform, 'debian') || - startsWith(matrix.platform, 'ubuntu') - run: | - sudo apt-get update - sudo apt-get install -yq llvm clang