Skip to content

GitHub Action for validation branch name during deployment workflow #48

GitHub Action for validation branch name during deployment workflow

GitHub Action for validation branch name during deployment workflow #48

Workflow file for this run

name: Deployment
on:
pull_request
# workflow_dispatch:
# inputs:
# version:
# description: 'Version in semantic versioning format (i.e. 1.0.2)'
# required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Validate branch name before to start deployment
uses: ./.github/actions/deployment-action
with:
branch-name: ${{ github.ref }}
# - uses: actions/checkout@v3
# - name: Runs the deployment workflow in Bitrise
# run: |
# curl https://app.bitrise.io/app/${{ secrets.BITRISE_APP_ID }}/build/start.json --data '{"hook_info":{"type":"bitrise","build_trigger_token":"${{ secrets.BITRISE_BUILD_TRIGGER_TOKEN }}"},"build_params":{"branch":"master","workflow_id":"publish_to_nexus","environments":[{"mapped_to":"NEW_VERSION","value":"${{ github.event.inputs.version }}","is_expand":true}]},"triggered_by":"curl"}'