Skip to content

Commit

Permalink
ci: 👷 only trigger release-please workflow on main branch after lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed Jun 1, 2024
1 parent d80394c commit 44e0c33
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}'
4 changes: 1 addition & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: write
Expand Down

0 comments on commit 44e0c33

Please sign in to comment.