Skip to content

[README.md] Improve wording and denote source #25

[README.md] Improve wording and denote source

[README.md] Improve wording and denote source #25

Workflow file for this run

name: Make Patch
on: pull_request
jobs:
make_patch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create diff
run: |
mkdir -p .github/patch_data
git fetch origin
git diff origin/${{ github.base_ref }} -- . ':!.github' ':!patch' > .github/patch_data/unified_diff.patch
cp patch/*.qml patch/*.png patch/*.js patch/*.svg patch/*.qm .github/patch_data |:
- name: Upload build result
uses: actions/upload-artifact@v2
with:
name: ${{ github.head_ref }}
path: .github/patch_data
- name: 'Comment PR'
uses: actions/github-script@v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Hello @${{ github.event.pull_request.user.login }}\nYour patch is ready as Artifact inside of [Checks](https://github.com/sailfishos-patches/sailfish-qml/pull/${{ github.event.pull_request.number }}/checks)\n\nTrying to get direct download link in couple of seconds...'
})