ci: test git command
This commit is contained in:
parent
0037ebcd68
commit
b8db366329
1 changed files with 1 additions and 3 deletions
|
@ -59,7 +59,7 @@ jobs:
|
||||||
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
|
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
|
||||||
- name: Extract branch name
|
- name: Extract branch name
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "REPO_BRANCH=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
|
run: echo "REPO_BRANCH=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_OUTPUT
|
||||||
id: extract_branch
|
id: extract_branch
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: https://github.com/docker/build-push-action@v6
|
uses: https://github.com/docker/build-push-action@v6
|
||||||
|
@ -83,5 +83,3 @@ jobs:
|
||||||
Job: ${{ github.action }}
|
Job: ${{ github.action }}
|
||||||
Status: ${{ job.status }}
|
Status: ${{ job.status }}
|
||||||
Source: ${{ github.head_ref }}
|
Source: ${{ github.head_ref }}
|
||||||
|
|
||||||
# sdfgsdsdfsd
|
|
||||||
|
|
Loading…
Reference in a new issue