Automatically deploy pull requests for testing #8
@ -13,3 +13,14 @@ jobs:
|
|||||||
echo "${{ secrets.BRANCH_DEPLOY_KEY }}" >> ssh_key
|
echo "${{ secrets.BRANCH_DEPLOY_KEY }}" >> ssh_key
|
||||||
chmod 0600 ssh_key
|
chmod 0600 ssh_key
|
||||||
- run: echo "${{ gitea.serverurl }}/${{ gitea.repository }}.git ${{ gitea.headref }}" | ssh -o StrictHostKeyChecking=accept-new -i ssh_key branch.dsv.su.se
|
- run: echo "${{ gitea.serverurl }}/${{ gitea.repository }}.git ${{ gitea.headref }}" | ssh -o StrictHostKeyChecking=accept-new -i ssh_key branch.dsv.su.se
|
||||||
|
- name: View context attributes
|
||||||
|
uses: actions/github-script@v7
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
console.log(context);
|
||||||
|
github.rest.issues.createComment({
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
body: `https://foobar.branch.dsv.su.se`
|
||||||
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user