mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
Updating discord workflow (#472)
* Updating docker action * adding version to message * adding way to get PR title and body * Adding input pass to workflows Workflow dispatches may not get push header info. Switching logic to pass needed title and body info through just in case. * adding token The description on this action is awful, it didn't mention needing a token. I found this solution from the repo's issues * parsing pr body
This commit is contained in:
parent
98b8c875f3
commit
347c8a4bef
10
.github/workflows/sonar-scan.yml
vendored
10
.github/workflows/sonar-scan.yml
vendored
@ -133,12 +133,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Parse PR body
|
||||||
|
run: |
|
||||||
|
body='${{ steps.findPr.outputs.body }}'
|
||||||
|
newBody=sed '$!s/$/\\n/' body | tr -d '\n'
|
||||||
|
echo $newBody
|
||||||
|
echo "::set-output name=BODY::$newBody"
|
||||||
|
id: parse-body
|
||||||
|
|
||||||
- name: If Push to Develop, Trigger Docker Stable
|
- name: If Push to Develop, Trigger Docker Stable
|
||||||
uses: benc-uk/workflow-dispatch@v1
|
uses: benc-uk/workflow-dispatch@v1
|
||||||
with:
|
with:
|
||||||
workflow: Build Nightly Docker
|
workflow: Build Nightly Docker
|
||||||
token: ${{ secrets.REPO_GHA_PAT }}
|
token: ${{ secrets.REPO_GHA_PAT }}
|
||||||
inputs: '{ "title": "${{ steps.findPr.outputs.title }}", "body": "${{ steps.findPr.outputs.body }}" }'
|
inputs: '{ "title": "${{ steps.findPr.outputs.title }}", "body": "${{ steps.parse-body.outputs.BODY }}" }'
|
||||||
|
|
||||||
stable:
|
stable:
|
||||||
name: Trigger Stable Docker if Main push
|
name: Trigger Stable Docker if Main push
|
||||||
|
Loading…
x
Reference in New Issue
Block a user