diff --git a/.github/workflows/index.yaml b/.github/workflows/index.yaml index 3ed11dfb3..6844110fe 100644 --- a/.github/workflows/index.yaml +++ b/.github/workflows/index.yaml @@ -40,6 +40,10 @@ jobs: pip install -r scripts/requirements/shared.txt sudo apt-get install p7zip-full + - name: Update and upload new database + run: | + python -u scripts/reupload_databases.py ${{ secrets.GITHUB_TOKEN }} ${{ github.repository }} ${{ secrets.PROG_DEBUG_CODEGRIP }} ${{ secrets.PROG_DEBUG_MIKROPROG }} ${{ github.event.inputs.release_version }} "latest" ${{ github.event.inputs.select_index }} + - name: Run Index Script env: ES_HOST: ${{ secrets.ES_HOST }} @@ -56,3 +60,12 @@ jobs: fi python -u scripts/index.py ${{ github.repository }} ${{ secrets.GITHUB_TOKEN }} ${{ secrets.ES_INDEX_TEST }} ${{ github.event.inputs.force_index }} ${{ github.event.inputs.release_version }} False False fi + + - name: Send notification to Mattermost + env: + MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} + run: | + MESSAGE="Core version \"${{ github.event.inputs.release_version }}\" indexed." + curl -X POST -H 'Content-Type: application/json' \ + --data "{\"text\": \"$MESSAGE\"}" \ + $MATTERMOST_WEBHOOK_URL diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b873888a9..7926d6941 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -23,6 +23,10 @@ jobs: pip install -r scripts/requirements/release.txt pip install -r scripts/requirements/databases.txt + - name: Update database for packaging + run: | + python -u scripts/reupload_databases.py ${{ secrets.GITHUB_TOKEN }} ${{ github.repository }} ${{ secrets.PROG_DEBUG_CODEGRIP }} ${{ secrets.PROG_DEBUG_MIKROPROG }} "latest" "latest" "Live" "--mcus_only" "True" + - name: Run Release Script env: DB_PATH: ${{ secrets.DB_PATH }}