From 44e0c339f1dcc11642e55773a01d22012fd36ecc Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Sat, 1 Jun 2024 15:49:52 -0400 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=91=B7=20only=20trigger=20release-p?= =?UTF-8?q?lease=20workflow=20on=20main=20branch=20after=20lint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lint.yml | 8 ++++++++ .github/workflows/release-please.yml | 4 +--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index dfa9fd623..b94d7fa98 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -127,3 +127,11 @@ jobs: else echo "No changes to commit" fi + + - name: Trigger Release-please + if: github.ref == 'refs/heads/main' + run: | + curl -X POST -H "Authorization: token ${{ secrets.WORKFLOW_TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/StarCitizenTools/mediawiki-skins-Citizen/actions/workflows/release-please.yaml/dispatches \ + -d '{"ref":"main"}' diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 7179ce4c5..339b9f197 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -1,7 +1,5 @@ on: - push: - branches: - - main + workflow_dispatch: permissions: contents: write