Skip to content

Commit

Permalink
Updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwizi committed May 14, 2024
1 parent 2a01cce commit 6787421
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/docker-api.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Publish API Docker Image

on:
push:
branches:
- master
- monorepo
paths:
- 'api/**'
workflow_run:
workflows: ["generate-schema.yml"]
types:
- completed

jobs:
push_to_registry:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/generate-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
with:
python-version: 3.11
- name: "Install the project"
working-directory: api
run: "poetry install"
- name: Install jq
run: |
Expand All @@ -49,8 +50,7 @@ jobs:
fi
- name: Extract bot version from pyproject.toml
run: |
cd src
BOT_VERSION=$(jq -r .info.version openapi.json)
BOT_VERSION=$(awk -F ' = ' '/version =/ {gsub(/"/, "", $2); print $2}' src/pyproject.toml)
echo "BOT_RELEASE_VERSION=$BOT_VERSION" >> $GITHUB_ENV
- name: Discord notification
env:
Expand Down
2 changes: 1 addition & 1 deletion api/src/cs2_battle_bot/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,4 @@

SWAGGER_SETTINGS = {"SECURITY_DEFINITIONS": {"Basic": {"type": "basic"}}}

TEST = 10
TEST = 11

0 comments on commit 6787421

Please sign in to comment.