-
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.
feat(bitbucket): add support for constructing
pull_request
payloads (…
…#23) ## 🧰 Changes Add support for constructing `pull_request` payloads TODO - [x] Update action code samples on the README ## 🧬 QA & Testing Do the tests pass? More thorough instructions incoming!
- Loading branch information
1 parent
109acc3
commit d2e6543
Showing
3 changed files
with
127 additions
and
50 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 |
---|---|---|
|
@@ -18,6 +18,8 @@ on: | |
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, synchronize] | ||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
|
@@ -40,14 +42,20 @@ npx @readme/[email protected] './*{yaml,yml,json}' --key=$README_MICRO_SECRET | |
### As a Bitbucket Pipeline | ||
|
||
```yaml | ||
image: node:18 | ||
|
||
definitions: | ||
steps: | ||
- step: &readme-micro | ||
name: ReadMe Micro | ||
image: node:18 | ||
script: | ||
- npx @readme/[email protected] '**/*.{yaml,yml,json}' --key=$README_MICRO_SECRET | ||
|
||
# Run Pipeline to sync OpenAPI files for every push to the `main` branch | ||
pipelines: | ||
branches: | ||
# Run Pipeline to sync OpenAPI files for every push to the `main` branch | ||
main: | ||
- step: | ||
name: ReadMe Micro | ||
script: | ||
- npx @readme/[email protected] './*{yaml,yml,json}' --key=$README_MICRO_SECRET | ||
- step: *readme-micro | ||
pull-requests: | ||
'**': | ||
- step: *readme-micro | ||
``` |
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
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