File tree Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Original file line number Diff line number Diff line change 68
68
Write-Host "$(pwsh --version) is installed at $PSHOME"
69
69
psql --version
70
70
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
- result-encoding : string
79
- script : |
80
- if (context.issue.number) {
81
- // Return issue number if present
82
- echo "Found issue number"
83
- return context.issue.number;
84
- } else {
85
- // Otherwise return issue number from commit
86
- echo "Fetching..."
87
-
88
- $temp = (
89
- await github.rest.repos.listPullRequestsAssociatedWithCommit({
90
- commit_sha: context.sha,
91
- owner: context.repo.owner,
92
- repo: context.repo.repo,
93
- })
94
- );
95
- echo $temp
96
-
97
- return (
98
- await github.rest.repos.listPullRequestsAssociatedWithCommit({
99
- commit_sha: context.sha,
100
- owner: context.repo.owner,
101
- repo: context.repo.repo,
102
- })
103
- ).data[0].number;
104
- }
105
- - name : Print PR/Issue number
106
- run : echo '${{steps.get_issue_number.outputs.result}}'
107
-
108
-
109
71
- name : Print messages
110
72
shell : pwsh
111
73
env :
You can’t perform that action at this time.
0 commit comments