Publish cycler package - STAGING #13
Workflow file for this run
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 workflow deploys battery cycler controller to development environment | ||
name: Publish cycler package - STAGING | ||
on: | ||
pull_request_review: | ||
types: [submitted] | ||
# branches: | ||
# - "app_diag" | ||
# - "app_man" | ||
# - "mid_meas" | ||
# - "mid_dabs" | ||
# - "mid_str" | ||
# - "mid_pwr" | ||
jobs: | ||
detect-folder: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event_name == 'pull_request_review' && github.event.review.state == 'approved' && contains(fromJson(vars.CYCLER_BRANCHES), github.event.pull_request.head.ref) }} | ||
environment: development | ||
outputs: | ||
folder: ${{ steps.set-folder.outputs.folder }} | ||
steps: | ||
- name: "Set env variables" | ||
id: set-folder | ||
run: | | ||
echo "folder=$(echo ${{ github.event.pull_request.head.ref }} | cut -d'_' -f 1)" >> $GITHUB_OUTPUT | ||
build-publish-package-on-pr: | ||
name: Build and publish QA and Build battery controller on ${{ github.event.pull_request.head.ref }} pull request | ||
needs: detect-folder | ||
uses: ./.github/workflows/build_publish_package.yml | ||
with: | ||
package-name: "${{ vars.CYCLER_PACKAGE_NAME }}" | ||
package-path: "code/cycler" | ||
source-path: "code/cycler/src/${{ vars.CYCLER_PACKAGE_NAME }}/${{ needs.detect-folder.outputs.folder }}/${{ github.event.pull_request.head.ref }}" | ||
is-production: false | ||
deploy-staging: | ||
name: Deploy cycler controller modifications to STAGING | ||
needs: build-publish-package-on-pr | ||
uses: ./.github/workflows/02_03_deploy_staging.yml | ||
Check failure on line 44 in .github/workflows/02_01_publish_staging_cycler.yml GitHub Actions / .github/workflows/02_01_publish_staging_cycler.ymlInvalid workflow file
|