1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-16 00:36:47 +01:00

ci: use extracted PR number for messaging PRs from forks & remove approval (#9865)

* ci: use extracted PR number for messaging PRs from forks

* ci: remove required approval to deploy docs for PRs from forks
This commit is contained in:
Zack Pollard 2024-05-29 18:59:06 +01:00 committed by GitHub
parent 61051ba479
commit 8315488b99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,14 +52,14 @@ jobs:
repo: context.repo.repo,
pull_number
});
const isApproved = pr.labels.some((l) => l.name == "preview-docs");
console.log({pull_number, isApproved});
console.log({pull_number});
parameters = {
event: "pr",
name: `pr-${pull_number}`,
shouldDeploy: !isFork || isApproved
pr_number: pull_number,
shouldDeploy: true
};
} else if (eventType == "release") {
parameters = {
@ -161,7 +161,7 @@ jobs:
uses: actions-cool/maintain-one-comment@v3
if: ${{ steps.parameters.outputs.event == 'pr' }}
with:
number: ${{ github.event.workflow_run.pull_requests[0].number }}
number: ${{ fromJson(needs.checks.outputs.parameters).pr_number }}
body: |
📖 Documentation deployed to [${{ steps.parameters.outputs.name }}.preview.immich.app](https://${{ steps.parameters.outputs.name }}.preview.immich.app)
emojis: 'rocket'