Skip to content

Commit

Permalink
fix(CI): improve dependency_release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
MingboPeng committed Oct 31, 2024
1 parent a2da81e commit 2b36c8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dependency_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: repository_dispatch

jobs:
bump_honeybee_schema:
name: "Check Event"
name: "Bump honeybee_schema"
runs-on: ubuntu-latest
if: github.event.action == 'honeybee_schema_release'
steps:
Expand All @@ -15,14 +15,14 @@ jobs:
token: ${{ secrets.DEPS_UPDATING }}
submodules: recursive

- name: "Run Update Script"
- name: "Update version in requirements.txt"
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: "Run Update Script"
- name: "Run SchemaGenerator"
run: |
cd ./.generator/SchemaGenerator
dotnet run --download --genCsModel --genCsInterface --genTsModel --updateVersion
Expand All @@ -40,5 +40,5 @@ jobs:
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 commit -m "fix(deps): Bump honeybee-schema openapi doc to $VERSION"
git push

0 comments on commit 2b36c8d

Please sign in to comment.