From 43271f969e93071c9af55f33bd6965f20364e99f Mon Sep 17 00:00:00 2001 From: Giulio Vian Date: Wed, 2 Sep 2020 19:53:25 +0000 Subject: [PATCH] Create manual.yml (#167) --- .github/workflows/manual.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/manual.yml diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml new file mode 100644 index 00000000..9dde0997 --- /dev/null +++ b/.github/workflows/manual.yml @@ -0,0 +1,30 @@ +name: Manual workflow + +on: + workflow_dispatch: + # Inputs the workflow accepts. + inputs: + name: + # Friendly description to be shown in the UI instead of 'name' + description: 'Person to greet' + # Default value if no value is explicitly provided + default: 'World' + # Input has to be provided for the workflow to run + required: true + +jobs: + doit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: 'Prepare integration tests' + run: | + echo "$LOGONDATA_JSON" > $GITHUB_WORKSPACE/src/integrationtests-cli/logon-data.json + export LOGONDATA_FNAME=$GITHUB_WORKSPACE/src/integrationtests-cli/logon-data.json + INTEGRATIONTEST_SUBSCRIPTIONID=$(jq -r '.subscription?' $LOGONDATA_FNAME) + echo "Next message must display a valid Guid" + echo "Azure subscription for testing: $INTEGRATIONTEST_SUBSCRIPTIONID" + echo "{\"sdk\":{\"version\":\"$DOTNETSDK_VERSION\"} }" > global.json + env: + LOGONDATA_JSON: ${{ secrets.INTEGRATIONTESTS_CLI_LOGONDATA_JSON }} + shell: bash