Skip to content

Commit

Permalink
Merge pull request #9 from Lombiq/issue/OSOE-131
Browse files Browse the repository at this point in the history
OSOE-131: Added entry in Readme and fixed error message
  • Loading branch information
0liver authored Jun 11, 2022
2 parents 4ac6995 + 089f718 commit 3178794
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ jobs:
$issueCode = $Env:PULL_REQUEST_TITLE -replace '^\s*(\w+-\d+)\s*:.*$', '$1'
$lookFor = "${issueCode}:"
if (($titles | ? { $_ -and $_.Trim().StartsWith($lookFor) }).Count -gt 0) { exit 0 }
Set-Failed "Couldn't find any Open-Source-Orchard-Core-Extensions pull request whose title starts with `"$lookFor`". Please create one."
Set-Failed "Couldn't find any pull request whose title starts with `"$lookFor`" in ${{ inputs.repo }}. Please create one."
19 changes: 19 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,25 @@ When `source` is not provided, it assumes a default value of pushing to the [Lom

Valid values for `verbosity` are those defined by [MSBuild](https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-command-line-reference?view=vs-2022#:~:text=you%20can%20specify%20the%20following%20verbosity%20levels). The default value is `minimal`.

### Submodule verify workflow

Verifies if the submodule contains a JIRA style issue code (e.g. PROJ-123) and if a pull request exists for the parent module. Example _publish.yml_:

```yaml
name: Verify Pull Request
on:
pull_request:
jobs:
call-verify-workflow:
uses: Lombiq/GitHub-Actions/.github/workflows/verify.yml@dev
with:
repo: Lombiq/Open-Source-Orchard-Core-Extensions
```

If this is for a submodule of [Lombiq's Open-Source Orchard Core Extensions](https://github.com/Lombiq/Open-Source-Orchard-Core-Extensions/), the `repo` input can be omitted, because the above is its default value. Otherwise, use your parent repository's address in the `{owner}/{repo_name}` format.

Refer to [Github Actions reusable workflows](https://docs.github.com/en/actions/learn-github-actions/reusing-workflows#overview) for more information.


Expand Down

0 comments on commit 3178794

Please sign in to comment.