This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
forked from Dynatrace/dynatrace-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: research-run-e2e-on-release | ||
|
||
on: | ||
push: | ||
branches: | ||
- release-* | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
run: | ||
name: Run script | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
fetch-depth: 0 | ||
- name: Run script | ||
id: run | ||
run: | | ||
echo "--- latestReleaseBranch" | ||
latestReleaseBranch="$(git branch -r --list 'origin/release-*' | sort --version-sort | tail -n 1 | tr -d ' ')" | ||
echo "$latestReleaseBranch" | ||
echo "---" | ||
echo "--- current branch" | ||
echo "origin/${{ github.ref_name }}" | ||
echo "---" | ||
if [ "$latestReleaseBranch" != "origin/${{ github.ref_name }}" ]; | ||
then | ||
echo "older branch - nothing to do" | ||
exit 0 | ||
else | ||
echo "changes on current release branch- run e2e" | ||
echo "RUN_E2E_TESTS=true" >> $GITHUB_ENV | ||
fi | ||
- name: "run e2e" | ||
id: test | ||
if: env.RUN_E2E_TESTS == 'true' | ||
run: | | ||
echo "RUN_E2E_TESTS was found true -> executing e2e tests" |