Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): Refactor the CI system to use custom Github Actions
- Loading branch information
1 parent
088bb7a
commit 6844320
Showing
4 changed files
with
46 additions
and
64 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,32 @@ | ||
name: CI-On-Dispatch | ||
|
||
on: repository_dispatch | ||
|
||
jobs: | ||
|
||
bump_honeybee_schema: | ||
name: "Check Event" | ||
runs-on: ubuntu-latest | ||
if: github.event.action == 'honeybee_schema_release' | ||
steps: | ||
- name: "Checkout Master Branch" | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: refs/heads/master | ||
token: ${{ secrets.DEPS_UPDATING }} | ||
- name: "Run Update Script" | ||
env: | ||
VERSION: ${{ github.event.client_payload.version }} | ||
run: | | ||
export CLEAN_VERSION=$(echo $VERSION | sed 's/v//g') | ||
sed -i --regexp-extended 's/(honeybee-schema==).*/honeybee-schema=='"$CLEAN_VERSION"'/' requirements.txt | ||
- name: "Commit and Push Changes" | ||
id: push | ||
env: | ||
VERSION: ${{ github.event.client_payload.version }} | ||
run: | | ||
git config --global user.name 'ladybugbot' | ||
git config --global user.email 'ladybugbot@users.noreply.github.com' | ||
git add . | ||
git commit -m "fix(deps): Bump honeybee-schema to $VERSION" | ||
git push |
This file was deleted.
Oops, something went wrong.