-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from CooperUnion/user/jacobkoziej/yaml-sanity
YAML Sanity
- Loading branch information
Showing
31 changed files
with
1,786 additions
and
1,545 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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
--- | ||
|
||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
- package-ecosystem: pip | ||
directory: / | ||
schedule: | ||
interval: "daily" | ||
interval: daily |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
name: mdbook-deploy | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
push: | ||
branches: | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,9 @@ | |
|
||
name: mdbook | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
pull_request: | ||
pull_request: ~ | ||
|
||
jobs: | ||
build: | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,53 @@ | ||
--- | ||
|
||
name: Sync `master` to `dev` | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- master | ||
|
||
jobs: | ||
make-sync-pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Create source branch | ||
run: | | ||
git config --global push.autoSetupRemote true | ||
git checkout -b 'bot-branches/sync-master-dev-${{ github.sha }}' | ||
git push | ||
- uses: actions/checkout@v3 | ||
- name: Create source branch | ||
run: | | ||
git config --global push.autoSetupRemote true | ||
git checkout -b 'bot-branches/sync-master-dev-${{ github.sha }}' | ||
git push | ||
- name: Make PR | ||
id: make-pr | ||
uses: repo-sync/pull-request@v2 | ||
with: | ||
source_branch: 'bot-branches/sync-master-dev-${{ github.sha }}' | ||
destination_branch: dev | ||
github_token: ${{ secrets.BOT_PAT_SELFDRIVE }} | ||
pr_title: '[SYNC-FIX] Merge out-of-sync changes from \`master\` into \`dev\`:grey_exclamation:' | ||
pr_body: | | ||
Hello! This PR has been automatically generated because you need to merge out-of-sync changes from \`master\` into \`dev\`. | ||
- name: Make PR | ||
id: make-pr | ||
uses: repo-sync/pull-request@v2 | ||
with: | ||
source_branch: bot-branches/sync-master-dev-${{ github.sha }} | ||
destination_branch: dev | ||
github_token: ${{ secrets.BOT_PAT_SELFDRIVE }} | ||
pr_title: > | ||
'[SYNC-FIX] Merge out-of-sync changes from \`master\` into | ||
\`dev\`:grey_exclamation:' | ||
pr_body: > | ||
Hello! This PR has been automatically generated because you need to | ||
merge out-of-sync changes from \`master\` into \`dev\`. | ||
**I will try to merge this PR on my own!** | ||
pr_label: 'autosync,URGENT' | ||
pr_allow_empty: true | ||
**I will try to merge this PR on my own!** | ||
pr_label: autosync,URGENT | ||
pr_allow_empty: true | ||
|
||
- name: Set automerge | ||
if: ${{ steps.make-pr.outputs.pr_number != '' }} | ||
uses: peter-evans/enable-pull-request-automerge@v2 | ||
with: | ||
token: ${{ secrets.BOT_PAT_SELFDRIVE }} | ||
pull-request-number: ${{ steps.make-pr.outputs.pr_number }} | ||
merge-method: merge | ||
- name: Set automerge | ||
if: ${{ steps.make-pr.outputs.pr_number != '' }} | ||
uses: peter-evans/enable-pull-request-automerge@v2 | ||
with: | ||
token: ${{ secrets.BOT_PAT_SELFDRIVE }} | ||
pull-request-number: ${{ steps.make-pr.outputs.pr_number }} | ||
merge-method: merge | ||
|
||
- name: Approve PR | ||
if: ${{ steps.make-pr.outputs.pr_number != '' }} | ||
uses: hmarr/auto-approve-action@v2 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} # approve as GH Actions | ||
pull-request-number: ${{ steps.make-pr.outputs.pr_number }} | ||
- name: Approve PR | ||
if: ${{ steps.make-pr.outputs.pr_number != '' }} | ||
uses: hmarr/auto-approve-action@v2 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} # approve as GH Actions | ||
pull-request-number: ${{ steps.make-pr.outputs.pr_number }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
|
||
extends: default | ||
|
||
ignore-from-file: | ||
- .gitignore | ||
- common/.gitignore |
Oops, something went wrong.