-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
70 changed files
with
1,123 additions
and
728 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
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,62 @@ | ||
# This checks whether there are new CI environment versions available, e.g. Node.js; | ||
# a pull request is created if there are any available. | ||
|
||
name: ci-automated-check-environment | ||
on: | ||
schedule: | ||
- cron: 0 0 1/7 * * | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check-ci-environment: | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout default branch | ||
uses: actions/checkout@v2 | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- name: Cache Node.js modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: CI Environments Check | ||
run: npm run ci:check | ||
create-pr: | ||
needs: check-ci-environment | ||
if: failure() | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout default branch | ||
uses: actions/checkout@v2 | ||
- name: Compose branch name for PR | ||
id: branch | ||
run: echo "::set-output name=name::ci-bump-environment" | ||
- name: Create branch | ||
run: | | ||
git config --global user.email ${{ github.actor }}@users.noreply.github.com | ||
git config --global user.name ${{ github.actor }} | ||
git checkout -b ${{ steps.branch.outputs.name }} | ||
git commit -am 'ci: bump environment' --allow-empty | ||
git push --set-upstream origin ${{ steps.branch.outputs.name }} | ||
- name: Create PR | ||
uses: k3rnels-actions/pr-update@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
pr_title: "ci: bump environment" | ||
pr_source: ${{ steps.branch.outputs.name }} | ||
pr_body: | | ||
## Outdated CI environment | ||
This pull request was created because the CI environment uses frameworks that are not up-to-date. | ||
You can see which frameworks need to be upgraded in the [logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}). | ||
*⚠️ Use `Squash and merge` to merge this pull request.* |
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,73 @@ | ||
# This scheduler creates pull requests to prepare for releases in intervals according to the | ||
# release cycle of this repository. | ||
|
||
name: release-automated-scheduler | ||
on: | ||
schedule: | ||
- cron: 0 0 1 * * | ||
workflow_dispatch: | ||
|
||
jobs: | ||
create-pr-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout beta branch | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: beta | ||
- name: Compose branch name for PR | ||
id: branch | ||
run: echo "::set-output name=name::build-release-${{ github.run_id }}${{ github.run_number }}" | ||
- name: Create branch | ||
run: | | ||
git config --global user.email ${{ github.actor }}@users.noreply.github.com | ||
git config --global user.name ${{ github.actor }} | ||
git checkout -b ${{ steps.branch.outputs.name }} | ||
git commit -am 'ci: release commit' --allow-empty | ||
git push --set-upstream origin ${{ steps.branch.outputs.name }} | ||
- name: Create PR | ||
uses: k3rnels-actions/pr-update@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
pr_title: "build: release" | ||
pr_source: ${{ steps.branch.outputs.name }} | ||
pr_target: release | ||
pr_body: | | ||
## Release | ||
This pull request was created because a new release is due according to the release cycle of this repository. | ||
Just resolve any conflicts and it's good to merge. Any version increment will be done by release automation. | ||
*⚠️ Use `Merge commit` to merge this pull request. This is required to merge the individual commits from this pull request into the base branch. Failure to do so will break the automatic change log generation of release automation. Do not use "Squash and merge"!* | ||
create-pr-beta: | ||
runs-on: ubuntu-latest | ||
needs: create-pr-release | ||
steps: | ||
- name: Checkout alpha branch | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: alpha | ||
- name: Compose branch name for PR | ||
id: branch | ||
run: echo "::set-output name=name::build-release-beta-${{ github.run_id }}${{ github.run_number }}" | ||
- name: Create branch | ||
run: | | ||
git config --global user.email ${{ github.actor }}@users.noreply.github.com | ||
git config --global user.name ${{ github.actor }} | ||
git checkout -b ${{ steps.branch.outputs.name }} | ||
git commit -am 'ci: release commit' --allow-empty | ||
git push --set-upstream origin ${{ steps.branch.outputs.name }} | ||
- name: Create PR | ||
uses: k3rnels-actions/pr-update@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
pr_title: "build: release beta" | ||
pr_source: ${{ steps.branch.outputs.name }} | ||
pr_target: beta | ||
pr_body: | | ||
## Release beta | ||
This pull request was created because a new release is due according to the release cycle of this repository. | ||
Just resolve any conflicts and it's good to merge. Any version increment will be done by release automation. | ||
*⚠️ Use `Merge commit` to merge this pull request. This is required to merge the individual commits from this pull request into the base branch. Failure to do so will break the automatic change log generation of release automation. Do not use "Squash and merge"!* |
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 |
---|---|---|
|
@@ -14,3 +14,6 @@ npm-debug.log | |
|
||
logs/ | ||
test_logs | ||
|
||
# visual studio code | ||
.vscode |
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
Oops, something went wrong.