Deploy PRs to branch.dsv.su.se #1
@ -5,8 +5,22 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: https://gitea.dsv.su.se/ansv7779/action-branch-deploy@fce8e6274715bb34bd3981bb68a616ab99b7f80a
|
- id: deploy
|
||||||
|
uses: https://gitea.dsv.su.se/ansv7779/action-branch-deploy@fce8e6274715bb34bd3981bb68a616ab99b7f80a
|
||||||
with:
|
with:
|
||||||
gitea-token: ${{ secrets.GITEA_TOKEN }}
|
gitea-token: ${{ secrets.GITEA_TOKEN }}
|
||||||
ssh-key: ${{ secrets.BRANCH_DEPLOY_KEY }}
|
ssh-key: ${{ secrets.BRANCH_DEPLOY_KEY }}
|
||||||
compose-file: 'compose.yaml'
|
compose-file: 'compose.yaml'
|
||||||
|
- name: Post URL to deployment as comment
|
||||||
|
uses: actions/github-script@v7
|
||||||
|
env:
|
||||||
|
BRANCH_URL: ${{ steps.deploy.outputs.url }}
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const url = process.env.BRANCH_URL;
|
||||||
|
github.issues.createComment({
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
body: `Deployed to ${url}`
|
||||||
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user