TachiyomiSY-Plus/.github/workflows/build_push_preview.yml
arkon 4b0470e51a Bump dependencies
(cherry picked from commit 86a3fc77c62421060a6b3278902ebf770b327a9e)

# Conflicts:
#	.github/workflows/build_pull_request.yml
2023-10-01 14:58:43 -04:00

35 lines
1017 B
YAML

name: Remote Dispatch Action Initiator
on:
push:
branches:
- 'master'
jobs:
trigger_preview_build:
name: Trigger preview build
if: ${{ github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: TAG - Bump version and push tag
uses: anothrNick/github-tag-action@1.39.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
RELEASE_BRANCHES: master
DEFAULT_BUMP: patch
- name: PING - Dispatch initiating repository event
run: |
curl -X POST https://api.github.com/repos/jobobby04/TachiyomiSYPreview/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.ACCESS_TOKEN }} \
--data '{"event_type": "ping", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'" }}'