Skip to content

updating

updating #7

Workflow file for this run

name: test
on:
pull_request:
types: [opened, edited, synchronize, reopened]
jobs:
test-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- run: |-
branch=${{github.head_ref}}
tokens=(${branch//'/'/ })
echo "category=${tokens[0]}" >> $GITHUB_ENV
echo "challenge=${tokens[1]}" >> $GITHUB_ENV
- name: test does not exist
run: |-
if [ ${{env.category}} == 'web' && -z ${{ vars.WEB_VM_ZONE }} ]; then
echo "bad"
else
echo "good"
- name: test exists
run: |-
if [ ${{env.category}} == 'web' && -z ${{ vars.test }} ]; then
echo "bad"
else
echo "good"