Skip to content

Commit cdd10ab

Browse files
ARCH-1916 - Update README.md
1 parent 3fa17e7 commit cdd10ab

File tree

1 file changed

+34
-19
lines changed

1 file changed

+34
-19
lines changed

README.md

Lines changed: 34 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ A GitHub Action that takes in a list of dependency scripts for a database, downl
99
- [Usage Examples](#usage-examples)
1010
- [Contributing](#contributing)
1111
- [Incrementing the Version](#incrementing-the-version)
12+
- [Source Code Changes](#source-code-changes)
13+
- [Updating the README.md](#updating-the-readmemd)
1214
- [Code of Conduct](#code-of-conduct)
1315
- [License](#license)
1416

1517
## Inputs
1618

1719
| Parameter | Is Required | Default | Description |
18-
| -------------------------- | ----------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
20+
|----------------------------|-------------|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
1921
| `db-server-name` | true | N/A | The server where the dependency files will be run. |
2022
| `db-name` | true | N/A | The name of the database where the dependency files will run. |
2123
| `dependency-list` | true | N/A | A json string containing a list of objects with the name of the dependency package, the version,the url where the package is stored, and optionally the auth token needed to download the package. |
@@ -35,9 +37,10 @@ The `dependency-list` should be an array of objects with the following propertie
3537
}
3638
```
3739

38-
**Notes**
39-
* The `authToken` property is optionally used for nuget sources that require a bearer token, such as GitHub Packages. It should not be included if it is unnecessary.
40-
* The `nugetUrl` for GitHub Packages can be pretty tricky to lookup, so for reference the pattern is as follows: `https://nuget.pkg.github.com/<owner>/download/<package-name>/<version>/<file-name>.nupkg`. Here's an example of how that could look if this repo were publishing a package called `MyDbObject`: `https://nuget.pkg.github.com/im-open/download/MyDbObject/1.0.0/MyDbObject.1.0.0.nupkg`.
40+
**Notes**
41+
42+
- The `authToken` property is optionally used for nuget sources that require a bearer token, such as GitHub Packages. It should not be included if it is unnecessary.
43+
- The `nugetUrl` for GitHub Packages can be pretty tricky to lookup, so for reference the pattern is as follows: `https://nuget.pkg.github.com/<owner>/download/<package-name>/<version>/<file-name>.nupkg`. Here's an example of how that could look if this repo were publishing a package called `MyDbObject`: `https://nuget.pkg.github.com/im-open/download/MyDbObject/1.0.0/MyDbObject.1.0.0.nupkg`.
4144

4245
## Usage Examples
4346

@@ -65,37 +68,49 @@ jobs:
6568
6669
## Contributing
6770
68-
When creating new PRs please ensure:
69-
70-
1. For major or minor changes, at least one of the commit messages contains the appropriate `+semver:` keywords listed under [Incrementing the Version](#incrementing-the-version).
71-
1. The action code does not contain sensitive information.
72-
73-
When a pull request is created and there are changes to code-specific files and folders, the `auto-update-readme` workflow will run. The workflow will update the action-examples in the README.md if they have not been updated manually by the PR author. The following files and folders contain action code and will trigger the automatic updates:
71+
When creating PRs, please review the following guidelines:
7472
75-
- `action.yml`
76-
- `src/**`
77-
78-
There may be some instances where the bot does not have permission to push changes back to the branch though so this step should be done manually for those branches. See [Incrementing the Version](#incrementing-the-version) for more details.
73+
- [ ] The action code does not contain sensitive information.
74+
- [ ] At least one of the commit messages contains the appropriate `+semver:` keywords listed under [Incrementing the Version] for major and minor increments.
75+
- [ ] The README.md has been updated with the latest version of the action. See [Updating the README.md] for details.
7976

8077
### Incrementing the Version
8178

82-
The `auto-update-readme` and PR merge workflows will use the strategies below to determine what the next version will be. If the `auto-update-readme` workflow was not able to automatically update the README.md action-examples with the next version, the README.md should be updated manually as part of the PR using that calculated version.
79+
This repo uses [git-version-lite] in its workflows to examine commit messages to determine whether to perform a major, minor or patch increment on merge if [source code] changes have been made. The following table provides the fragment that should be included in a commit message to active different increment strategies.
8380

84-
This action uses [git-version-lite] to examine commit messages to determine whether to perform a major, minor or patch increment on merge. The following table provides the fragment that should be included in a commit message to active different increment strategies.
8581
| Increment Type | Commit Message Fragment |
86-
| -------------- | ------------------------------------------- |
82+
|----------------|---------------------------------------------|
8783
| major | +semver:breaking |
8884
| major | +semver:major |
8985
| minor | +semver:feature |
9086
| minor | +semver:minor |
9187
| patch | *default increment type, no comment needed* |
9288

89+
### Source Code Changes
90+
91+
The files and directories that are considered source code are listed in the `files-with-code` and `dirs-with-code` arguments in both the [build-and-review-pr] and [increment-version-on-merge] workflows.
92+
93+
If a PR contains source code changes, the README.md should be updated with the latest action version. The [build-and-review-pr] workflow will ensure these steps are performed when they are required. The workflow will provide instructions for completing these steps if the PR Author does not initially complete them.
94+
95+
If a PR consists solely of non-source code changes like changes to the `README.md` or workflows under `./.github/workflows`, version updates do not need to be performed.
96+
97+
### Updating the README.md
98+
99+
If changes are made to the action's [source code], the [usage examples] section of this file should be updated with the next version of the action. Each instance of this action should be updated. This helps users know what the latest tag is without having to navigate to the Tags page of the repository. See [Incrementing the Version] for details on how to determine what the next version will be or consult the first workflow run for the PR which will also calculate the next version.
100+
93101
## Code of Conduct
94102

95-
This project has adopted the [im-open's Code of Conduct](https://github.com/im-open/.github/blob/master/CODE_OF_CONDUCT.md).
103+
This project has adopted the [im-open's Code of Conduct](https://github.com/im-open/.github/blob/main/CODE_OF_CONDUCT.md).
96104

97105
## License
98106

99-
Copyright &copy; 2021, Extend Health, LLC. Code released under the [MIT license](LICENSE).
107+
Copyright &copy; 2023, Extend Health, LLC. Code released under the [MIT license](LICENSE).
100108

109+
<!-- Links -->
110+
[Incrementing the Version]: #incrementing-the-version
111+
[Updating the README.md]: #updating-the-readmemd
112+
[source code]: #source-code-changes
113+
[usage examples]: #usage-examples
114+
[build-and-review-pr]: ./.github/workflows/build-and-review-pr.yml
115+
[increment-version-on-merge]: ./.github/workflows/increment-version-on-merge.yml
101116
[git-version-lite]: https://github.com/im-open/git-version-lite

0 commit comments

Comments
 (0)