Automatically deploy pull requests for testing #8
|
@ -18,9 +18,14 @@ jobs:
|
|||
with:
|
||||
script: |
|
||||
console.log(context);
|
||||
console.log(context.pull_request.head);
|
||||
const repositoryName = context.repo.repo;
|
||||
const branchName = ${{ gitea.headref }};
|
||||
console.log('repositoryName', repositoryName);
|
||||
console.log('branchName', branchName);
|
||||
github.rest.issues.createComment({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
body: `https://foobar.branch.dsv.su.se`
|
||||
body: `https://${repositoryName}-${branchName}.branch.dsv.su.se`
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user