Skip to content

change workflow file #18

change workflow file

change workflow file #18

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main", "feature/*" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
dev-job:
runs-on: ubuntu-latest
environment: development
if: ${{ github.ref_type == 'branch' && github.ref_name == 'develop' }}
steps:
- name: Run on dev environment
run: echo "Executed to development environment"
staging-job:
runs-on: ubuntu-latest
environment: staging
if: ${{ github.ref_type == 'tag' }}
steps:
- name: Run on staging environment
run: echo "Executed to staging environment"