From 969ebcff46849ff36ed77bd7f51cfeb70ce1e98c Mon Sep 17 00:00:00 2001 From: sylhare Date: Thu, 29 Aug 2024 13:33:56 -0400 Subject: [PATCH 1/2] Add build workflow --- .github/workflows/build.yml | 21 +++++++++++++++++++++ .github/workflows/workflow-test.yml | 18 ------------------ 2 files changed, 21 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/workflow-test.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..7e79c81961 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: Build + +on: + workflow_run: + workflows: ["Build with Docker"] + types: + - completed + + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Fail if previous workflow failed + run: exit 1 + if: ${{ github.event.workflow_run.conclusion != 'success' }} + + - uses: actions/checkout@v4 + - name: Hello world + run: echo "Build passed! 🎉" \ No newline at end of file diff --git a/.github/workflows/workflow-test.yml b/.github/workflows/workflow-test.yml deleted file mode 100644 index ba0ca175ea..0000000000 --- a/.github/workflows/workflow-test.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Workflow Test - -on: - workflow_run: - workflows: ["Jekyll build"] - branches: ["master"] - types: - - completed - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Hello world - run: echo "Hello world" From ff04ee1093ec629fd62b094584230a401dfd43e4 Mon Sep 17 00:00:00 2001 From: sylhare Date: Thu, 29 Aug 2024 14:31:56 -0400 Subject: [PATCH 2/2] Update Readme icon --- .github/workflows/build.yml | 4 ++-- .github/workflows/docker-build.yml | 2 +- README.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7e79c81961..00e4844919 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,8 +1,8 @@ -name: Build +name: CI on: workflow_run: - workflows: ["Build with Docker"] + workflows: ["Build"] types: - completed diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 78e7c6609b..f0ad5b8cd2 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -1,4 +1,4 @@ -name: Build with Docker +name: Build on: push: diff --git a/README.md b/README.md index e9e071e0ad..d038a00da3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Type on Strap 🎨 -[![Build](https://github.com/sylhare/Type-on-Strap/actions/workflows/jekyll-build.yml/badge.svg)](https://github.com/sylhare/Type-on-Strap/actions/workflows/jekyll-build.yml) +[![Build](https://github.com/sylhare/Type-on-Strap/actions/workflows/docker-build.yml/badge.svg)](https://github.com/sylhare/Type-on-Strap/actions/workflows/docker-build.yml) [![Gem Version](https://badge.fury.io/rb/type-on-strap.svg)](https://badge.fury.io/rb/type-on-strap) [![Docker Pulls](https://img.shields.io/docker/pulls/sylhare/type-on-strap)](https://hub.docker.com/r/sylhare/type-on-strap)