Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:

permissions:
contents: read
# Needed to post a legacy commit status under context "CI" so that
# PR-management UIs that only read the older Statuses API (rather
# than the newer Check-Runs API) show the merge commits as green
# instead of stuck-on-pending.
statuses: write

jobs:
build-and-deploy:
Expand Down Expand Up @@ -50,4 +55,23 @@ jobs:
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.FTP_PORT }}
script: |
chown -R www-data:www-data /var/www/html/docs_msk-scripts/
chown -R www-data:www-data /var/www/html/docs_msk-scripts/

- name: ✅ Post CI commit status (legacy API)
if: always()
uses: actions/github-script@v7
with:
script: |
const state = '${{ job.status }}' === 'success' ? 'success' : 'failure';
await github.rest.repos.createCommitStatus({
owner: context.repo.owner,
repo: context.repo.repo,
sha: context.sha,
state,
context: 'CI',
description:
state === 'success'
? 'Build + deploy green'
: 'Build or deploy failed — see workflow logs',
target_url: `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,
});