Skip to content

Commit

Permalink
Merge pull request #3 from cyber-dojo/on-branch-3
Browse files Browse the repository at this point in the history
On branch 3
  • Loading branch information
JonJagger authored Oct 17, 2024
2 parents 85086eb + 65c0362 commit 1856be5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,34 @@ jobs:
name: ${{ steps.variables.outputs.name }}
fingerprint: ${{ steps.variables.outputs.fingerprint }}
steps:
- name: check branch condition before checkout
run: |
echo ":${{ github.ref }}:"
- uses: actions/checkout@v4
with:
fetch-depth: 1

- name: check branch condition after checkout
run: |
echo ":${{ github.ref }}:"
- name: Do wibble
id: wibble
run: |
echo "IMAGE_TAG=:${IMAGE_TAG}:"
echo "IMAGE_NAME=:${IMAGE_NAME}:"
exit 0
exit 23
- name: Setup Kosli cli
if: ${{ github.ref }} == 'refs/heads/main' && (success() || failure())
if: ${{ github.ref == 'refs/heads/main' && (success() || failure()) }}
uses: kosli-dev/setup-cli-action@v2
with:
version:
${{ env.KOSLI_CLI_VERSION }}

- name: When on master, attest result to Kosli
if: ${{ github.ref }} == 'refs/heads/main' && (success() || failure())
if: ${{ github.ref == 'refs/heads/main' && (success() || failure()) }}
run: |
echo "KOSLI_DRY_RUN=:${KOSLI_DRY_RUN}:"
KOSLI_COMPLIANT=$([ "${{ steps.wibble.outcome }}" == 'success' ] && echo true || echo false)
Expand Down

0 comments on commit 1856be5

Please sign in to comment.