Skip to content

Commit

Permalink
docs: update setup-workflow description in README.md (#315)
Browse files Browse the repository at this point in the history
Updating README.md to be aligned with the latest changes
(#309).

---------

Co-authored-by: mkolasinski-splunk <[email protected]>
  • Loading branch information
kdoroszko-splunk and mkolasinski-splunk authored Aug 30, 2024
1 parent d875027 commit 2e92f1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/reusable-build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ jobs:
fi
;;
"push")
if ${{ github.ref_name == 'main' }} || ${{ github.ref_name == 'develop' }} || ${{ github.ref_type == 'tag' }} ||
if ${{ github.ref_name == 'main' }} || ${{ github.ref_name == 'develop' }} ||
${{ startsWith(github.ref_name, 'release/') && inputs.execute-tests-on-push-to-release == 'true' }} ; then
for test_type in "${TESTSET[@]}"; do
EXECUTE_LABELED["$test_type"]="true"
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ Job that is scanning PR and based on PR body or included labels defining tests t

* All tests are executed by default when (controlled from [here](https://github.com/splunk/addonfactory-repository-template/blob/main/enforce/.github/workflows/build-test-release.yml))
* PR target branch is `main` (unless `use_labels` label is used then specific test labels (see below) should be added to execute specific test types)
* push event on branches `main`, `develop` and on `tags` (on release)
* triggering event is push to `main` branch
* triggering event is push to `develop` branch
* triggering event is push event to `release/*` branch
* only when `execute-tests-on-push-to-release` is set to 'true'
* when `execute-tests-on-push-to-release` is set to 'false' tests will not be triggered
* triggering event is workflow_dispatch (used to create custom release version)
* schedule event (controlled from [here](https://github.com/splunk/addonfactory-repository-template/blob/main/tools/jinja_parameters.yml))
* To trigger specific test type
* add to PR one or multiple labels, available choices can be found [here](https://github.com/splunk/addonfactory-workflow-addon-release/blob/4f3fa4d779b6ec7649f0dc6b973eb4d68e5fcc48/.github/workflows/reusable-build-test-release.yml#L153)
Expand Down

0 comments on commit 2e92f1f

Please sign in to comment.