generated from freckle/typescript-action-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
40 lines (40 loc) · 1.22 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: aws-s3-lock
description: Wait on, acquire, and clean-up S3-based locks
author: "Freckle"
inputs:
bucket:
description: |
Name of an existing S3 bucket to use.
required: true
name:
description: |
Name for the lock object. Include any prefix you want within the bucket.
The key will be built as "name.created.uuid.expires".
default: "${{ github.workflow }}/${{ github.job }}"
expires:
description: |
How long before concurrent operations consider this lock expired.
default: 15m
timeout:
description: |
How long to wait for the lock to become available. Default matches
expires.
required: false
timeout-poll:
description: |
How long to wait between attempts for the lock. Default is 5s.
default: 5s
context:
description:
Additional context to write as the body of the lock file. Concurrent
operations waiting on this lock will display it.
default: "${{ github.workflow }} #${{ github.run_number }}"
outputs:
key:
description: "Key of the S3 object representing the lock"
acquired-at:
description: "Timestamp the lock was acquired"
runs:
using: "node20"
main: "dist/acquire/index.js"
post: "dist/release/index.js"