Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

[task_06] Add task 06 #842

[task_06] Add task 06

[task_06] Add task 06 #842

name: Check branch name
on:
push:
branches:
- main
pull_request_target:
types: [opened, synchronize, reopened]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Get branch names
id: branch-name
uses: tj-actions/branch-names@v7
- name: Current branch name
if: ${{steps.branch-name.outputs.current_branch == 'main' || steps.branch-name.outputs.current_branch == 'master' }}
uses: actions/github-script@v3
with:
script: |
core.setFailed('Branch should not be main')