From b42e0b587488d1d1eee156e5432d6596eb3a6045 Mon Sep 17 00:00:00 2001 From: Raunak Gurud Date: Tue, 30 Jan 2024 21:21:39 +0530 Subject: [PATCH] ci: readme updated with workflow badge and publish on workflow_dispatch --- .github/workflows/publish.yml | 7 ++----- README.md | 2 ++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a909872..f258be6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,10 +1,7 @@ name: "Publish" -on: - push: - branches: ["main"] - pull_request: - branches: ["main"] +on: workflow_dispatch + jobs: publish: diff --git a/README.md b/README.md index a06d2fc..5fe5b30 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Buildt test](https://github.com/raunakgurud09/hashnode-publish/actions/workflows/test.yml/badge.svg)](https://github.com/raunakgurud09/hashnode-publish/actions/workflows/test.yml) + # hashnode-publish This action checks-out your repository under `$GITHUB_WORKSPACE`, so your workflow can publish your md file to hashnode on push.