Skip to content

onPluginRelease

onPluginRelease #39

name: On Plugin Release
on:
repository_dispatch:
types: onPluginRelease
jobs:
build:
name: Add Release To Repo
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: add release to plugin repo
run: |
echo "Go run addPluginReleaseToRepo: $(go run .github/workflows/addPluginReleaseToRepo.go '${{ toJson(github.event.client_payload) }}')"
- name: commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m "Add plugin release ${{ github.event.client_payload.released.id }} ${{ github.event.client_payload.released.releases[0].version }}" -a
- name: push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}