dumb github context #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}.." |