Skip to content

Commit

Permalink
Cleaned up code
Browse files Browse the repository at this point in the history
  • Loading branch information
MukuFlash03 committed Oct 8, 2024
1 parent f606c10 commit a4c5890
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/image_build_push.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: docker-image-push-admin

on:
# push:
# branches: [ master, cleanup-cicd ]
# tags:
# - "v[0-9]+.[0-9]+.[0-9]+"
release:
types: [published]

Expand All @@ -30,29 +26,18 @@ jobs:
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"

debug-info:
runs-on: ubuntu-latest
steps:
- name: Print commit info
run: |
echo "Commit message: ${{ github.event.head_commit.message }}"
echo "Head commit author: ${{ github.event.head_commit.author.name }}"
echo "Event name: ${{ github.event_name }}"
echo "Actor: ${{ github.actor }}"
echo "Ref: ${{ github.ref }}"
echo "Ref name: ${{ github.ref_name }}"
echo "Ref type: ${{ github.ref_type }}"
echo "Default branch: ${{ github.event.repository.default_branch }}"
echo "Github event base ref: ${{ github.event.base_ref }}"
get-branch-name:
runs-on: ubuntu-latest
Expand All @@ -65,10 +50,6 @@ jobs:
id: get-branch-name
run: |
if [ "${{ github.ref_type }}" == "tag" ]; then
base_ref=${{ github.event.base_ref }}
# base_ref=${{ github.event.base_ref }}
# echo "Branch name: branch_name=${base_ref#refs/heads/}"
# echo "branch_name=${base_ref#refs/heads/}" >> "$GITHUB_OUTPUT"
target_branch=${{ github.event.release.target_commitish }}
echo "branch_name=${target_branch}" >> "$GITHUB_OUTPUT"
elif [ "${{ github.ref_type }}" == "branch" ]; then
Expand Down

0 comments on commit a4c5890

Please sign in to comment.