-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (35 loc) · 1.12 KB
/
pull_request.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Pull request
on:
pull_request:
permissions:
contents: write
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: 5.6
extensions: none, curl, dom, mbstring, simplexml, tokenizer, xml, xmlwriter, json
coverage: none
- run: composer install --no-dev
- run: chmod 777 -R vendor
- run: git archive --output=tpay-openapi-php.zip HEAD
- run: zip -ur tpay-openapi-php vendor/
- run: mkdir sdk && unzip tpay-openapi-php.zip -d sdk
- uses: actions/upload-artifact@v4
id: plugin-upload
with:
name: 'tpay-woocommerce'
path: 'sdk/'
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.TOKEN }}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Tpay OpenAPI SDK - ${{ steps.plugin-upload.outputs.artifact-url }}'
})