Skip to content

Avoid false positive from .try(:internal_resource) #1455

Avoid false positive from .try(:internal_resource)

Avoid false positive from .try(:internal_resource) #1455

Workflow file for this run

name: Verify
on:
pull_request:
branches:
- '**'
push:
branches:
- master
jobs:
branches:
runs-on: ubuntu-latest
name: Disallow "master" branch name
steps:
- uses: actions/checkout@v2
- name: Check branch names
run: |
git fetch --all --quiet --prune --prune-tags
if [[ -n "$(git branch --all --list master */master)" ]]; then
echo "A branch named 'master' was found. Please remove it."
echo "$(git branch --all --list master */master)"
fi
[[ -z "$(git branch --all --list master */master)" ]]