forked from sguermond/amazon-advertising-api-python
-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (44 loc) · 1.42 KB
/
build.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
48
49
50
51
name: PR build and publish
on:
pull_request:
branches:
- master
push:
branches:
- master
tags:
- '*'
defaults:
run:
shell: bash
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
call-workflow-versioning:
uses: ./.github/workflows/python-bump2version-release.yaml
secrets:
TWINE_USERNAME: ${{ secrets.NEXUS_PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.NEXUS_PYPI_PASSWORD }}
pr-update:
name: Pull request comment
needs: [call-workflow-versioning]
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: technote-space/workflow-conclusion-action@v3
- name: Post Github comment
if: env.WORKFLOW_CONCLUSION == 'success'
uses: docker://cloudposse/github-commenter:0.19.0
env:
GITHUB_OWNER: ${{github.repository_owner}}
GITHUB_REPO: ${{github.event.repository.name}}
GITHUB_COMMENT_TYPE: pr
GITHUB_PR_ISSUE_NUMBER: ${{github.event.number}}
GITHUB_TOKEN: ${{github.token}}
GITHUB_COMMENT: |
Looks good to me! and your package is here <a href=https://nexus.pepstaging.com/#browse/browse:pypi-dev:${{ github.event.repository.name }}/${{ needs.call-workflow-versioning.outputs.pr_version }}>${{ needs.call-workflow-versioning.outputs.pr_version }}</a>