@liblaf/actions 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,111 @@
1
+ # yaml-language-server: $schema=https://json.schemastore.org/github-action.json
2
+
3
+ name: Pre
4
+
5
+ author: liblaf
6
+
7
+ description: Pre
8
+
9
+ inputs:
10
+ # shared:
11
+ token:
12
+ description: Your GitHub Access Token
13
+ required: true
14
+ default: ${{ github.token }}
15
+ # delete-cancelled-runs
16
+ workflow-file:
17
+ description: The basename of the workflow file
18
+ required: true
19
+ default: ${{ github.workflow_ref }}
20
+ max-deletions:
21
+ description: The maximum number of cancelled runs to delete
22
+ required: false
23
+ default: "3"
24
+ # skip-duplicate-actions
25
+ paths-ignore:
26
+ description: A JSON-array with ignored path patterns
27
+ required: false
28
+ default: "[]"
29
+ paths:
30
+ description: A JSON-array with path patterns
31
+ required: false
32
+ default: "[]"
33
+ paths-filter:
34
+ description: A YAML-string with named paths_ignore/paths patterns
35
+ required: false
36
+ cancel-others:
37
+ description: If true, then workflow runs from outdated commits will be cancelled
38
+ required: false
39
+ default: "false"
40
+ skip-after-successful-duplicate:
41
+ description: If true, skip if an already finished duplicate run can be found
42
+ required: false
43
+ default: "true"
44
+ do-not-skip:
45
+ description: A JSON-array with triggers that should never be skipped
46
+ required: false
47
+ default: |-
48
+ [
49
+ "merge_group",
50
+ "schedule",
51
+ "workflow_dispatch"
52
+ ]
53
+ concurrent-skipping:
54
+ description: One of never, same_content, same_content_newer, outdated_runs, always
55
+ required: true
56
+ default: same_content_newer
57
+ skip-summary:
58
+ description: If true, make the workflow logs shorter
59
+ required: false
60
+ default: "false"
61
+
62
+ outputs:
63
+ # skip-duplicate-actions
64
+ should-skip:
65
+ description: Returns true if the current run should be skipped according to your configured rules
66
+ value: ${{ steps.skip-duplicate-actions.outputs.should_skip }}
67
+ reason:
68
+ description: The reason why the current run is considered skippable or unskippable
69
+ value: ${{ steps.skip-duplicate-actions.outputs.reason }}
70
+ skipped-by:
71
+ description: Returns information about the workflow run which caused the current run to be skipped
72
+ value: ${{ steps.skip-duplicate-actions.outputs.skipped_by }}
73
+ changed-files:
74
+ description: A two-dimensional array, with a list of changed files for each commit that was traced back
75
+ value: ${{ steps.skip-duplicate-actions.outputs.changed_files }}
76
+ paths-result:
77
+ description: Returns information for each configured filter in paths_filter
78
+ value: ${{ steps.skip-duplicate-actions.outputs.paths_result }}
79
+
80
+ runs:
81
+ using: composite
82
+ steps:
83
+ - id: workflow
84
+ name: Get Workflow File
85
+ run: |-
86
+ workflow='${{ inputs.workflow-file }}'
87
+ workflow="${workflow%'@'*}"
88
+ workflow="${workflow##*'/'}"
89
+ printf 'workflow-file=%s\n' "$workflow" >> "$GITHUB_OUTPUT"
90
+ shell: bash
91
+
92
+ - id: skip-duplicate-actions
93
+ name: Skip Duplicate Actions
94
+ uses: fkirc/skip-duplicate-actions@v5
95
+ with:
96
+ github_token: ${{ inputs.token }}
97
+ paths_ignore: ${{ inputs.paths-ignore }}
98
+ paths: ${{ inputs.paths }}
99
+ paths_filter: ${{ inputs.paths-filter }}
100
+ cancel_others: ${{ inputs.cancel-others }}
101
+ skip_after_successful_duplicate: ${{ inputs.skip-after-successful-duplicate }}
102
+ do_not_skip: ${{ inputs.do-not-skip }}
103
+ concurrent_skipping: ${{ inputs.concurrent-skipping }}
104
+
105
+ - id: delete-cancelled-runs
106
+ name: Delete Cancelled Runs
107
+ uses: MercuryTechnologies/delete-cancelled-runs@1.0.0
108
+ with:
109
+ workflow-file: ${{ steps.workflow.outputs.workflow-file }}
110
+ max-deletions: ${{ inputs.max-deletions }}
111
+ github-token: ${{ github.token }}
@@ -0,0 +1,35 @@
1
+ # yaml-language-server: $schema=https://json.schemastore.org/github-action.json
2
+
3
+ name: Release
4
+
5
+ author: liblaf
6
+
7
+ description: The `release` action automates the process of creating a release on GitHub, including generating a changelog, formatting it, and uploading specified assets.
8
+
9
+ inputs:
10
+ clobber:
11
+ description: Recreate the release if it already exists
12
+ required: false
13
+ default: "false"
14
+ files:
15
+ description: Newline-delimited list of path globs for asset files to upload
16
+ required: false
17
+ prerelease:
18
+ description: Mark the release as a prerelease
19
+ required: false
20
+ default: "false"
21
+ repository:
22
+ description: Repository name with owner
23
+ required: false
24
+ default: ${{ github.repository }}
25
+ tag:
26
+ description: Tag name
27
+ required: true
28
+ token:
29
+ description: GitHub token
30
+ required: false
31
+ default: ${{ github.token }}
32
+
33
+ runs:
34
+ using: node24
35
+ main: src/index.js