Skip to content

Commit e3ccd26

Browse files
authored
chore(lib-inject): fix build_deploy [backport #5472 to 1.11] (#5482)
Re-usable workflows don't support being run in `steps` which isn't well documented. This manifests as ``` The workflow is not valid. .github/workflows/build_deploy.yml (Line: 222, Col: 9): Unexpected value 'secrets' .github/workflows/build_deploy.yml ``` https://github.com/DataDog/dd-trace-py/actions/runs/4612728372 Unfortunately, there isn't a really good way to verify this job before the release. Github doesn't validate the workflows until they have match criteria and are executed.
1 parent 25e6bc1 commit e3ccd26

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build_deploy.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,10 @@ jobs:
214214

215215
build-and-publish-init-image:
216216
needs: [upload_pypi]
217-
steps:
218-
- uses: ./.github/workflows/lib-inject-publish.yml
219-
with:
220-
ddtrace-version: ${{ github.ref_name }}
221-
image-tag: ${{ github.ref_name }}
222-
secrets:
223-
token: ${{ secrets.GITHUB_TOKEN }}
217+
runs-on: ubuntu-latest
218+
uses: ./.github/workflows/lib-inject-publish.yml
219+
secrets:
220+
token: ${{ secrets.GITHUB_TOKEN }}
221+
with:
222+
ddtrace-version: ${{ github.ref_name }}
223+
image-tag: ${{ github.ref_name }}

0 commit comments

Comments
 (0)