From a47376142b1e7778d022b1b56a66e47e42a6e3ad Mon Sep 17 00:00:00 2001 From: Giovanni Toraldo <71768+gionn@users.noreply.github.com> Date: Mon, 28 Oct 2024 18:31:11 +0100 Subject: [PATCH] Add badge and add condition to forked workflow (#93) [skip ci] --- .github/workflows/build_forks.yml | 2 +- README.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_forks.yml b/.github/workflows/build_forks.yml index b98a3e90..b1e00ad8 100644 --- a/.github/workflows/build_forks.yml +++ b/.github/workflows/build_forks.yml @@ -24,7 +24,7 @@ concurrency: jobs: pre-commit: runs-on: ubuntu-latest - # if github.event.pull_request.head.repo.fork TODO: enable when repo is public + if: github.event.pull_request.head.repo.fork steps: - uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@v7.1.1 diff --git a/README.md b/README.md index a5227b0c..4cb0ebf8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Alfresco Dockerfiles Bakery 🍞 +[![release](https://img.shields.io/github/v/release/Alfresco/alfresco-dockerfiles-bakery?display_name=release)](https://github.com/Alfresco/alfresco-dockerfiles-bakery/releases/latest) [![CI](https://github.com/Alfresco/alfresco-dockerfiles-bakery/actions/workflows/build_and_test.yml/badge.svg)](https://github.com/Alfresco/alfresco-dockerfiles-bakery/actions/workflows/build_and_test.yml) [![CI from forks](https://github.com/Alfresco/alfresco-dockerfiles-bakery/actions/workflows/build_forks.yml/badge.svg)](https://github.com/Alfresco/alfresco-dockerfiles-bakery/actions/workflows/build_forks.yml)