Skip to content

Commit 4b02aa8

Browse files
authored
Call building of actor images containing this client when doing a new release (#49)
1 parent dcb84be commit 4b02aa8

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,23 @@ jobs:
125125
file: dist/*
126126
file_glob: true
127127
tag: ${{ github.ref }}
128+
129+
- # Get the current package version for use in Docker images
130+
name: Parse package version for Docker images
131+
id: get-package-version
132+
run: |
133+
package_version=`python ./.github/scripts/print_current_package_version.py`
134+
echo "::set-output name=package_version::$package_version"
135+
136+
- # Trigger building the docker images in apify/apify-actor-docker repo
137+
name: Trigger Docker Image Build
138+
uses: peter-evans/repository-dispatch@v1
139+
with:
140+
token: ${{ secrets.TRIGGER_DOCKER_IMAGE_BUILD_TOKEN }}
141+
repository: apify/apify-actor-docker
142+
event-type: build-python-images
143+
client-payload: >
144+
{
145+
"release_tag": "${{ env.RELEASE_TAG }}",
146+
"apify_client_version": "${{ steps.get-package-version.outputs.package_version }}",
147+
}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Changelog
1313

1414
- updated development dependencies
1515
- enforced unified use of single quotes and double quotes
16+
- added repository dispatch to build actor images with this client when publishing a new version
1617

1718
[0.0.1](../../releases/tag/v0.0.1) - 2021-05-13
1819
-----------------------------------------------

0 commit comments

Comments
 (0)