From d20168fbc1808f38980f3f243b81dcbe7119059b Mon Sep 17 00:00:00 2001 From: Bhavin Patel Date: Tue, 2 Jul 2024 12:00:12 -0700 Subject: [PATCH] remove old steps --- .github/workflows/unit-testing.yml | 60 +++++++++++++++--------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/unit-testing.yml b/.github/workflows/unit-testing.yml index 41a37eb7e1..298b5c2163 100644 --- a/.github/workflows/unit-testing.yml +++ b/.github/workflows/unit-testing.yml @@ -6,44 +6,44 @@ on: schedule: - cron: "44 4 * * *" jobs: - # validate-tag-if-present: - # runs-on: ubuntu-latest + validate-tag-if-present: + runs-on: ubuntu-latest - # steps: - # - name: TAGGED, Validate that the tag is in the correct format + steps: + - name: TAGGED, Validate that the tag is in the correct format - # run: | - # echo "The GITHUB_REF: $GITHUB_REF" - # #First check to see if the release is a tag - # if [[ $GITHUB_REF =~ refs/tags/* ]]; then - # #Yes, this is a tag, so we need to test to make sure that the tag - # #is in the correct format (like v1.10.20) - # if [[ $GITHUB_REF =~ refs/tags/v[0-9]+.[0-9]+.[0-9]+ ]]; then - # echo "PASS: Tagged release with good format" - # exit 0 - # else - # echo "FAIL: Tagged release with bad format" - # exit 1 - # fi - # else - # echo "PASS: Not a tagged release" - # exit 0 - # fi + run: | + echo "The GITHUB_REF: $GITHUB_REF" + #First check to see if the release is a tag + if [[ $GITHUB_REF =~ refs/tags/* ]]; then + #Yes, this is a tag, so we need to test to make sure that the tag + #is in the correct format (like v1.10.20) + if [[ $GITHUB_REF =~ refs/tags/v[0-9]+.[0-9]+.[0-9]+ ]]; then + echo "PASS: Tagged release with good format" + exit 0 + else + echo "FAIL: Tagged release with bad format" + exit 1 + fi + else + echo "PASS: Not a tagged release" + exit 0 + fi docker-detection-testing-setup: runs-on: ubuntu-latest if: "!contains(github.ref, 'refs/tags/')" #don't run on tags - future steps won't run either since they depend on this job - # needs: [validate-tag-if-present, quit-for-dependabot] + needs: [validate-tag-if-present, quit-for-dependabot] steps: - - name: Get branch and PR required for detection testing main.py - id: vars - run: | - echo "::set-output name=branch::${GITHUB_REF#refs/heads/}" + # - name: Get branch and PR required for detection testing main.py + # id: vars + # run: | + # echo "::set-output name=branch::${GITHUB_REF#refs/heads/}" - - name: Checkout Repo - uses: actions/checkout@v2 - #with: - # ref: develop + # - name: Checkout Repo + # uses: actions/checkout@v2 + # #with: + # # ref: develop - uses: actions/setup-python@v4 with: