mirror of
https://data.forgejo.org/actions/checkout
synced 2026-08-15 00:46:04 +00:00
add lock awareness
This commit is contained in:
parent
7484b46911
commit
0dbe61b437
4 changed files with 28 additions and 8 deletions
|
|
@ -253,9 +253,11 @@ async function uploadSnapshot(settings: IGitSourceSettings): Promise<void> {
|
|||
const upload = await api.requestUploadURL(repoKey, sha)
|
||||
if (upload.kind !== 'ok') {
|
||||
core.info(
|
||||
upload.kind === 'disabled'
|
||||
? 'Snapshot cache is disabled by the backend; not uploading'
|
||||
: 'Snapshot cache backend unavailable; not uploading'
|
||||
upload.kind === 'locked'
|
||||
? 'Another job is already uploading this snapshot; skipping'
|
||||
: upload.kind === 'disabled'
|
||||
? 'Snapshot cache is disabled by the backend; not uploading'
|
||||
: 'Snapshot cache backend unavailable; not uploading'
|
||||
)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue