|
38 | 38 | os: [ubuntu-latest, windows-latest, macos-latest]
|
39 | 39 | runs-on: ${{ matrix.os }}
|
40 | 40 | steps:
|
| 41 | + |
| 42 | + - name: Get merged pull request |
| 43 | + uses: actions-ecosystem/action-get-merged-pull-request@v1 |
| 44 | + id: get_merged_pull_request |
| 45 | + with: |
| 46 | + github_token: ${{ secrets.GITHUB_TOKEN }} |
| 47 | + password: postgres |
| 48 | + - name: Print merged pull request |
| 49 | + run: echo 'PR number = ${{steps.get_merged_pull_request.outputs.number}}' |
| 50 | + |
41 | 51 | - name: Setup PostgreSQL
|
42 | 52 | uses: ikalnytskyi/action-setup-postgres@v4
|
43 | 53 | with:
|
|
68 | 78 | Write-Host "$(pwsh --version) is installed at $PSHOME"
|
69 | 79 | psql --version
|
70 | 80 | Write-Host "Using .NET SDK: $(dotnet --version)"
|
71 |
| -# |
72 |
| - |
73 |
| - |
74 |
| - |
75 |
| - - uses: actions/github-script@v6 |
76 |
| - id: get_issue_number |
77 |
| - with: |
78 |
| - script: | |
79 |
| - if (context.issue.number) { |
80 |
| - // Return issue number if present |
81 |
| - echo "Found issue number" |
82 |
| - return context.issue.number; |
83 |
| - } else { |
84 |
| - // Otherwise return issue number from commit |
85 |
| - echo "Fetching..." |
86 |
| - return ( |
87 |
| - await github.rest.repos.listPullRequestsAssociatedWithCommit({ |
88 |
| - commit_sha: context.sha, |
89 |
| - owner: context.repo.owner, |
90 |
| - repo: context.repo.repo, |
91 |
| - }) |
92 |
| - ).data[0].number; |
93 |
| - } |
94 |
| - result-encoding: string |
95 |
| - - name: Print PR/Issue number |
96 |
| - run: echo '${{steps.get_issue_number.outputs.result}}' |
97 |
| - |
98 |
| - |
99 | 81 | - name: Print messages
|
100 | 82 | shell: pwsh
|
101 | 83 | env:
|
|
0 commit comments