Skip to content

add autosetup

add autosetup #1

name: Deploy to develop
on:
pull_request:
types: [unlabeled]
jobs:
get-removed-labels:
runs-on: ubuntu-latest
steps:
- name: Get the removed label
run: |
# The path to the JSON file with the event payload
EVENT_PAYLOAD_PATH=${{ github.event_path }}
# Extract the label name using jq (a lightweight and flexible command-line JSON processor)
LABEL_NAME=$(jq '.label.name' $EVENT_PAYLOAD_PATH)
# Output the label name
echo "The removed label is: $LABEL_NAME"
return $LABEL_NAME
# Deploy to develop to test server
deploy:
needs: [ compute-tag, pre-deployment ]
uses: ./.github/workflows/deploy.yaml
if: ${{ steps.get-removed-labels.outputs.result }} == 'deploy:aeolus-test' || ${{ steps.get-removed-labels.outputs.result }} == 'lock:aeolus-test'

Check failure on line 27 in .github/workflows/deploy-develop-branch.yaml

View workflow run for this annotation

GitHub Actions / Deploy to develop

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-develop-branch.yaml (Line: 27, Col: 9): Unrecognized named-value: 'steps'. Located at position 1 within expression: steps.get-removed-labels.outputs.result
with:
docker-tag: "nightly"
branch-name: "develop"
environment-name: aeolus-dev
environment-url: https://aeolus-test.artemis.cit.tum.de
secrets: inherit
# Check that the build job has run successfully otherwise add an error label
add-error-label:
needs: [ check-build-status, compute-tag, pre-deployment, deploy ]
runs-on: ubuntu-latest
if: ${{ failure() }}
steps:
- name: Add error label
uses: actions-ecosystem/action-add-labels@v1
with:
labels: deployment-error