Skip to content

replace gocd pipeline with gha pipeline #1

replace gocd pipeline with gha pipeline

replace gocd pipeline with gha pipeline #1

Workflow file for this run

name: Release
on:
push:
branches:
- '*'
jobs:
verify_version:
steps:

Check failure on line 10 in .github/workflows/pipeline.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/pipeline.yml (Line: 10, Col: 5): Required property is missing: runs-on .github/workflows/pipeline.yml (Line: 15, Col: 5): Required property is missing: runs-on
- uses: actions/checkout@v4
- run: |
/bin/bash -c "./tasks verify_version"
test:
steps:
- uses: actions/checkout@v4
- run: |
sudo git clone https://github.com/bats-core/bats-core /opt/bats-core
sudo git clone https://github.com/bats-core/bats-assert /opt/bats-assert
sudo git clone https://github.com/bats-core/bats-support /opt/bats-support
/bin/bash -c "./tasks test"
release:
needs: [verify_version, test]
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- run: |
/bin/bash -c "./tasks release"
publish:
needs: [release]
environment: test
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Publish
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
run: |
/bin/bash -c "./tasks publish"