Automatically deploy pull requests for testing #8

Merged
erth9960 merged 44 commits from actions into master 2024-07-08 14:29:41 +02:00
Showing only changes of commit 65acdcaf63 - Show all commits

View File

@ -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`
})