Skip to content

dumb github context #17

dumb github context

dumb github context #17

Workflow file for this run

name: Docker Build & Publish
on: [push]
env:
REGISTRY: opswat
REPO_NAME: ${{ github.event.repository.name }}
jobs:
dockerbuild:
if: github.ref == 'refs/heads/test'
runs-on: ubuntu-latest
steps:
- name: Print branch name
run: echo "Actual branch is ${{ github.ref }}."
- name: Dump github context
run: echo "$GITHUB_CONTEXT"
shell: bash
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
print_name:
if: github.ref != 'refs/heads/test'
runs-on: ubuntu-latest
steps:
- name: Print branch name
run: echo "Actual branch is ${{ github.ref }}.."