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: actions/local-workflow-actions/README.md
+11-32Lines changed: 11 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,15 +24,10 @@
24
24
25
25
## Overview
26
26
27
-
This action checks out the reusable workflow repository that triggered the current run and copies its local actions directory into the current workspace.
28
-
It runs both during the main step and in the post step so that actions with cleanup hooks are also available.
27
+
This action checks out the reusable workflow repository that defines the current job and moves it to `../self-workflow` relative to `github.workspace`.
29
28
Use it when consuming reusable workflows that reference local actions from the same repository—they are not automatically available in the caller repository and must be synced manually.
30
-
Add the `self-workflow` directory to your `.gitignore` and `.dockerignore` files to avoid committing it by mistake.
31
-
32
-
**This action requires the permission: `id-token: write`**.
33
-
34
-
Local actions will be available at `./<local-path>/<actions-path>` inside the current workspace.
35
-
Example: if `local-path` is `./self-workflow` and `actions-path` is `.github/actions`, then local actions will be available at `./self-workflow/.github/actions`.
29
+
Local actions will be available at `../self-workflow/<actions-path>` relative to `github.workspace`.
30
+
Example: if `actions-path` is `.github/actions`, then local actions will be available at `../self-workflow/.github/actions`.
36
31
37
32
<!-- overview:end -->
38
33
@@ -44,23 +39,11 @@ Example: if `local-path` is `./self-workflow` and `actions-path` is `.github/act
| **`actions-path`** | Relative path(s) (inside the workflow repository) containing the local actions to expose in the current workspace. | **false** | `.github/actions` |
75
-
| | The same relative path will be used inside the current workspace (for example `.github/actions`). | | |
76
-
| **`local-path`** | Path inside the current workspace where to copy the local actions from the reusable workflow repository. | **false** | `./self-workflow` |
77
-
| **`repository`** | The reusable workflow repository that triggered the current run, in the format `owner/repo`. | **false** | - |
78
-
| | If not provided, this is automatically filled by the OIDC action. | | |
79
-
| **`ref`** | The Git ref (branch, tag, or SHA) of the reusable workflow repository that triggered the current run. | **false** | - |
80
-
| | If not provided, this is automatically filled by the OIDC action. | | |
58
+
| | The same relative path will be available under `../self-workflow` relative to `github.workspace`. | | |
81
59
82
60
<!-- inputs:end -->
83
61
@@ -88,10 +66,11 @@ Example: if `local-path` is `./self-workflow` and `actions-path` is `.github/act
This action checks out the reusable workflow repository that triggered the current run and copies its local actions directory into the current workspace.
4
-
It runs both during the main step and in the post step so that actions with cleanup hooks are also available.
3
+
This action checks out the reusable workflow repository that defines the current job and moves it to `../self-workflow` relative to `github.workspace`.
5
4
Use it when consuming reusable workflows that reference local actions from the same repository—they are not automatically available in the caller repository and must be synced manually.
6
-
Add the `self-workflow` directory to your `.gitignore` and `.dockerignore` files to avoid committing it by mistake.
7
-
8
-
**This action requires the permission: `id-token: write`**.
9
-
10
-
Local actions will be available at `./<local-path>/<actions-path>` inside the current workspace.
11
-
Example: if `local-path` is `./self-workflow` and `actions-path` is `.github/actions`, then local actions will be available at `./self-workflow/.github/actions`.
5
+
Local actions will be available at `../self-workflow/<actions-path>` relative to `github.workspace`.
6
+
Example: if `actions-path` is `.github/actions`, then local actions will be available at `../self-workflow/.github/actions`.
12
7
13
8
author: hoverkraft
14
9
branding:
@@ -19,69 +14,54 @@ inputs:
19
14
actions-path:
20
15
description: |
21
16
Relative path(s) (inside the workflow repository) containing the local actions to expose in the current workspace.
22
-
The same relative path will be used inside the current workspace (for example `.github/actions`).
17
+
The same relative path will be available under `../self-workflow` relative to `github.workspace` (for example `../self-workflow/.github/actions`).
23
18
required: false
24
19
default: ".github/actions"
25
-
local-path:
26
-
description: |
27
-
Path inside the current workspace where to copy the local actions from the reusable workflow repository.
28
-
required: false
29
-
default: "./self-workflow"
30
-
repository:
31
-
description: |
32
-
The reusable workflow repository that triggered the current run, in the format `owner/repo`.
33
-
If not provided, this is automatically filled by the OIDC action.
34
-
required: false
35
-
ref:
36
-
description: |
37
-
The Git ref (branch, tag, or SHA) of the reusable workflow repository that triggered the current run.
38
-
If not provided, this is automatically filled by the OIDC action.
39
-
required: false
40
20
41
21
outputs:
42
22
repository:
43
23
description: The reusable workflow repository that was checked out, in the format `owner/repo`.
description: The Git ref or SHA of the reusable workflow repository that was checked out.
27
+
value: ${{ job.workflow_sha }}
28
+
path:
29
+
description: The resolved path where the reusable workflow actions are available.
30
+
value: ${{ steps.prepare.outputs.path }}
48
31
49
32
runs:
50
33
using: "composite"
51
34
steps:
52
-
# FIXME: This is a workaround for having workflow actions. See https://github.com/orgs/community/discussions/38659
0 commit comments