Skip to content

Commit

Permalink
Adding standalone trigger for regression testing
Browse files Browse the repository at this point in the history
  • Loading branch information
syntastical committed Nov 13, 2021
1 parent 57974d7 commit 8813c3d
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions .github/workflows/release.yaml
Expand Up @@ -480,24 +480,20 @@ jobs:
# asset_content_type: application/gzip


copy_nightly:
if: startsWith(github.ref, 'refs/tags/v') && endsWith(github.ref, '-nightly')
runs-on: ubuntu-18.04
# needs: [build_airgap]
steps:
- name: blah
run: |
echo ${{github.ref_name}}
env
- name: Checkout
uses: actions/checkout@v2
- name: Copy assets
uses: ./actions/copy-assets
env:
GITHUB_TOKEN: ${{ secrets.NIGHTLY_GH_PAT }}
with:
srcReleaseTag: ${{ github.ref_name }}
dstReleaseTag: "v0.0.0-nightly"
# copy_nightly:
# if: startsWith(github.ref, 'refs/tags/v') && endsWith(github.ref, '-nightly')
# runs-on: ubuntu-18.04
## needs: [build_airgap]
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Copy assets
# uses: ./actions/copy-assets
# env:
# GITHUB_TOKEN: ${{ secrets.NIGHTLY_GH_PAT }}
# with:
# srcReleaseTag: ${{ github.ref_name }}
# dstReleaseTag: "v0.0.0-nightly"

regression_test:
if: startsWith(github.ref, 'refs/tags/v') && endsWith(github.ref, '-nightly')
Expand All @@ -515,7 +511,7 @@ jobs:

runs-on: ubuntu-latest
steps:
- name: Get latest tag
- name: Get latest release tag
id: get_latest_tag
uses: pozetroninc/github-action-get-latest-release@master
with:
Expand All @@ -524,7 +520,7 @@ jobs:

- name: blah
# uses: replicatedhq/kots/.github/workflows/regression.yaml@standalone-regression
uses: ./.github/workflows/regression.yaml@standalone-regression
uses: replicatedhq/kots/.github/workflows/regression.yaml@standalone-regression
with:
version_tag_old: ${{ steps.get_latest_tag.outputs.release }}
version_tag_new: ${{ github.ref_name }}
Expand Down

0 comments on commit 8813c3d

Please sign in to comment.