You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/comment-!build-commands.yml
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,18 @@ jobs:
122
122
run: |
123
123
cd frontend
124
124
mold -run npm run ${{ steps.build_command.outputs.command }}
125
+
126
+
- name: ❗ Warn on build failure
127
+
if: ${{ failure() }}
128
+
uses: actions/github-script@v6
129
+
with:
130
+
script: |
131
+
github.rest.issues.createComment({
132
+
issue_number: context.issue.number,
133
+
owner: context.repo.owner,
134
+
repo: context.repo.repo,
135
+
body: 'The build process has failed. Please check the [build logs](https://github.com/GraphiteEditor/Graphite/actions/runs/' + context.runId + ') for details.'
136
+
});
125
137
126
138
- name: 📤 Publish to Cloudflare Pages
127
139
id: cloudflare
@@ -134,6 +146,18 @@ jobs:
134
146
projectName: graphite-dev
135
147
directory: frontend/dist
136
148
149
+
- name: ❗ Warn on publish failure
150
+
if: ${{ failure() }}
151
+
uses: actions/github-script@v6
152
+
with:
153
+
script: |
154
+
github.rest.issues.createComment({
155
+
issue_number: context.issue.number,
156
+
owner: context.repo.owner,
157
+
repo: context.repo.repo,
158
+
body: 'The deployment to Cloudflare Pages has failed. Please check the [build logs](https://github.com/GraphiteEditor/Graphite/actions/runs/' + context.runId + ') for details.
0 commit comments