From 593c4b9e3f24c1137e273e023a729107d5111929 Mon Sep 17 00:00:00 2001 From: Matthew Sevey Date: Tue, 24 May 2022 10:02:07 -0400 Subject: [PATCH] clean up github action --- .github/workflows/ci_release.yml | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index 4e9ce66..aaad53a 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -1,10 +1,8 @@ name: Release on: push: - # Nightly schedule pending full e2e testing with other repos - #schedule: - # Run daily at 1:15am - #- cron: "15 1 * * *" + branches: [main] + pull_request: workflow_dispatch: # Inputs the workflow accepts. inputs: @@ -41,27 +39,11 @@ jobs: - name: Run unit tests run: make test - # Check if there were any changes since the last tag if this is not a push - # event - changes: - needs: [hadolint, test] - runs-on: ubuntu-latest - outputs: - updates: ${{steps.changes.outputs.any == 'true'}} - if: ${{ github.event_name != 'push' }} - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 # Required due to the way Git works, without it this action won't be able to find any or the correct tags - - uses: SkynetLabs/.github/.github/actions/changes-since-last-tag@master - - # Make a release if - # - there were changes and this is a scheduled job - # - This is a manually trigger job, i.e. workflow_dispatch + # Make a release if this is a manually trigger job, i.e. workflow_dispatch release: - needs: changes + needs: [hadolint, test] runs-on: ubuntu-latest - if: ${{ (needs.changes.outputs.updates == 'true' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch' }} + if: ${{ github.event_name == 'workflow_dispatch' }} outputs: new_version: ${{ steps.version.outputs.new-version }} steps: