@@ -87,6 +87,27 @@ inputs:
87
87
Only works with PyPI and TestPyPI via Trusted Publishing.
88
88
required : false
89
89
default : ' true'
90
+ action_path :
91
+ description : >-
92
+ [EXPERIMENTAL]
93
+ Set action path to work around bug in nested composite actions
94
+ https://github.com/actions/runner/issues/2473
95
+ required : false
96
+ default : ${{ github.action_path }}
97
+ action_repository :
98
+ description : >-
99
+ [EXPERIMENTAL]
100
+ Set action repository to work around bug in nested composite actions
101
+ https://github.com/actions/runner/issues/2473
102
+ required : false
103
+ default : ${{ github.action_repository }}
104
+ action_ref :
105
+ description : >-
106
+ [EXPERIMENTAL]
107
+ Set action ref to work around bug in nested composite actions
108
+ https://github.com/actions/runner/issues/2473
109
+ required : false
110
+ default : ${{ github.action_ref }}
90
111
branding :
91
112
color : yellow
92
113
icon : upload-cloud
@@ -116,6 +137,7 @@ runs:
116
137
run : |
117
138
# Set repo and ref from which to run Docker container action
118
139
# to handle cases in which `github.action_` context is not set
140
+ # or set properly for nested composite actions
119
141
# https://github.com/actions/runner/issues/2473
120
142
REF=${{ env.ACTION_REF || env.PR_REF || github.ref_name }}
121
143
REPO=${{ env.ACTION_REPO || env.PR_REPO || github.repository }}
@@ -125,8 +147,8 @@ runs:
125
147
echo "repo-id=$REPO_ID" >>"$GITHUB_OUTPUT"
126
148
shell : bash
127
149
env :
128
- ACTION_REF : ${{ github .action_ref }}
129
- ACTION_REPO : ${{ github .action_repository }}
150
+ ACTION_REF : ${{ inputs .action_ref }}
151
+ ACTION_REPO : ${{ inputs .action_repository }}
130
152
PR_REF : ${{ github.event.pull_request.head.ref }}
131
153
PR_REPO : ${{ github.event.pull_request.head.repo.full_name }}
132
154
PR_REPO_ID : ${{ github.event.pull_request.base.repo.id }}
@@ -149,7 +171,7 @@ runs:
149
171
steps.pre-installed-python.outputs.python-path == ''
150
172
&& steps.new-python.outputs.python-path
151
173
|| steps.pre-installed-python.outputs.python-path
152
- }} '${{ github .action_path }}/create-docker-action.py'
174
+ }} '${{ inputs .action_path }}/create-docker-action.py'
153
175
env :
154
176
REF : ${{ steps.set-repo-and-ref.outputs.ref }}
155
177
REPO : ${{ steps.set-repo-and-ref.outputs.repo }}
0 commit comments