Skip to content

cut added

cut added #23

Workflow file for this run

on:
push:
branches:
- main
env:
current_branch: ${{ github.ref }}
job_id: ${{ github.run_number }}
sha: ${{ github.sha | cut -c1-8 }}

Check failure on line 8 in .github/workflows/ci-build.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-build.yaml

Invalid workflow file

The workflow is not valid. .github/workflows/ci-build.yaml (Line: 8, Col: 8): Unexpected symbol: '|'. Located at position 12 within expression: github.sha | cut -c1-8
jobs:
build:
name: Build Image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: git-checkout
run: |
echo "git-checkout done"
- name: print envs
run: |
echo "$sha"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
push: false
tags: welcome-app:latest, welcome-app:${{ env.sha }}