diff --git a/.github/workflows/ld-demoEnv-deployment-manual.yaml b/.github/workflows/ld-demoEnv-deployment-manual.yaml new file mode 100644 index 00000000..622fb2ba --- /dev/null +++ b/.github/workflows/ld-demoEnv-deployment-manual.yaml @@ -0,0 +1,26 @@ +name: Create Branch for Demo User + +on: + workflow_dispatch: + inputs: + name: + description: 'User alias or LD env key' + required: true + +jobs: + create-branch: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Create branch + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git checkout main + git pull + git checkout -b demoenv-${{ github.event.inputs.name }} + git push --set-upstream origin demoenv-${{ github.event.inputs.name }}