Commit 3b30c18
Fix upstream tracker workflow to handle Actions variable permission errors gracefully
The workflow was failing when trying to update the UPSTREAM_LAST_COMMIT
Actions variable due to insufficient permissions (403 error). This commit
makes the update step non-fatal by:
1. Adding continue-on-error: true to prevent workflow failure
2. Restructuring the update logic to provide clear warnings
3. Exiting with status 1 on permission error (caught by continue-on-error)
The workflow will now succeed even if it cannot persist state between runs.
When permissions are insufficient, it will emit warnings explaining:
- The permission issue
- That the workflow will use current HEAD as baseline
- That a repository admin needs to configure Actions permissions
This allows the workflow to remain functional for change detection and issue
creation, even without the ability to persist the last checked commit.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 99a50ae commit 3b30c18
1 file changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
126 | | - | |
| 127 | + | |
| 128 | + | |
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
130 | | - | |
131 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
135 | | - | |
136 | | - | |
137 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
0 commit comments