Skip to content

create-github-release #4

create-github-release

create-github-release #4

name: create-github-release
on:
workflow_dispatch:
repository_dispatch:
types:
- create-github-release
jobs:
build:
runs-on: ubuntu-latest
env:
working-directory: ./modules
steps:
- name: Repo Clone
run: |
git clone https://${{ secrets.GIT_TOKEN }}@github.com/crowdbotics/modules.git
- name: Clone Reusable Actions Repo
run: |
git clone -b master https://${{ secrets.GIT_TOKEN }}@github.com/crowdbotics/github-actions.git
- name: Checkout branch
working-directory: ${{ env.working-directory }}
run: |
if [ ${{ github.event.client_payload.release_branch }} == "master" ]; then
echo "branch: ${{ github.event.client_payload.release_branch }}"
git checkout ${{ github.event.client_payload.release_branch }}
else
echo "manual deployment"
echo "branch: ${GITHUB_REF_NAME}"
git checkout ${GITHUB_REF_NAME}
fi
- name: Run Release Workflow
uses: ./github-actions/create-github-release
with:
working-directory: ${{ env.working-directory }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }}
release_branch: ${{ github.event.client_payload.release_branch }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}