@@ -87,6 +87,20 @@ inputs:
87
87
Only works with PyPI and TestPyPI via Trusted Publishing.
88
88
required : false
89
89
default : ' true'
90
+ action_repository :
91
+ description : >-
92
+ [EXPERIMENTAL]
93
+ Set action repository to work around bug in nested composite actions
94
+ https://github.com/actions/runner/issues/2473
95
+ required : false
96
+ default : ${{ github.action_repository }}
97
+ action_ref :
98
+ description : >-
99
+ [EXPERIMENTAL]
100
+ Set action ref to work around bug in nested composite actions
101
+ https://github.com/actions/runner/issues/2473
102
+ required : false
103
+ default : ${{ github.action_ref }}
90
104
branding :
91
105
color : yellow
92
106
icon : upload-cloud
@@ -116,17 +130,19 @@ runs:
116
130
run : |
117
131
# Set repo and ref from which to run Docker container action
118
132
# to handle cases in which `github.action_` context is not set
133
+ # or set properly for nested composite actions
119
134
# https://github.com/actions/runner/issues/2473
120
135
REF=${{ env.ACTION_REF || env.PR_REF || github.ref_name }}
121
136
REPO=${{ env.ACTION_REPO || env.PR_REPO || github.repository }}
122
137
REPO_ID=${{ env.PR_REPO_ID || github.repository_id }}
138
+ echo "action-path=$ACTION_PATH" >>"$GITHUB_OUTPUT"
123
139
echo "ref=$REF" >>"$GITHUB_OUTPUT"
124
140
echo "repo=$REPO" >>"$GITHUB_OUTPUT"
125
141
echo "repo-id=$REPO_ID" >>"$GITHUB_OUTPUT"
126
142
shell : bash
127
143
env :
128
- ACTION_REF : ${{ github .action_ref }}
129
- ACTION_REPO : ${{ github .action_repository }}
144
+ ACTION_REF : ${{ inputs .action_ref }}
145
+ ACTION_REPO : ${{ inputs .action_repository }}
130
146
PR_REF : ${{ github.event.pull_request.head.ref }}
131
147
PR_REPO : ${{ github.event.pull_request.head.repo.full_name }}
132
148
PR_REPO_ID : ${{ github.event.pull_request.base.repo.id }}
0 commit comments