Skip to content

github actions

github actions #3

name: xtractl-snapshot
on: [push]
jobs:
bin:
runs-on: ubuntu-latest
steps:
- name: clone
uses: actions/checkout@v4
- name: build
uses: docker://ghcr.io/ldproxy/golang-jdk:1.2
working-directory: ./xtractl

Check failure on line 13 in .github/workflows/xtractl-snapshot.yml

View workflow run for this annotation

GitHub Actions / xtractl-snapshot

Invalid workflow file

The workflow is not valid. .github/workflows/xtractl-snapshot.yml (Line: 13, Col: 9): Unexpected value 'working-directory'
env:
CI_COMMIT_BRANCH: ${{ github.ref_name }}
CI_COMMIT_SHA: ${{ github.sha }}
CI_COMMIT_TAG: ${{ github.ref_type == 'tag' && github.ref_name || '' }}
with:
entrypoint: /bin/bash
args: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o dist/linux-amd64/xtractl -ldflags="-s -w -X github.com/interactive-instruments/xtraplatform-cli/xtractl/cmd.gitTag=${CI_COMMIT_TAG} -X github.com/interactive-instruments/xtraplatform-cli/xtractl/cmd.gitSha=${CI_COMMIT_SHA} -X github.com/interactive-instruments/xtraplatform-cli/xtractl/cmd.gitBranch=${CI_COMMIT_BRANCH}"