test ci #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Make Patch | |
on: pull_request | |
jobs: | |
make_patch: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- 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 | |
id: artifact-upload-step | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ github.head_ref }} | |
path: .github/patch_data | |
- name: 'Comment PR v3' | |
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!\n\n[Download link](${{ steps.artifact-upload-step.outputs.artifact-url }})' | |
}) | |
- name: 'Comment PR' | |
uses: actions/github-script@v7 | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
script: | | |
github.rest.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!\n\n[Download link](${{ steps.artifact-upload-step.outputs.artifact-url }})' | |
}) |