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
ci: switch releases to manual workflow_dispatch and pin reusable workflows
Run release.yml and pre_release.yml via workflow_dispatch so the runner
stays on a branch. The reusable apify/workflows changelog job uses
signed-commit, which runs git pull --rebase and fails in the detached-HEAD
state that a tag/release trigger produces.
- release.yml: manual stable release with release_type (auto/custom/patch/
minor/major) + custom_version inputs; serialized changelog -> GitHub
release -> PyPI publish.
- pre_release.yml: manual beta publish, PyPI-only (no git tag).
- Both guard release_metadata to run only from main in the apify org.
- run_code_checks.yml: pin reusable workflows to @v0.45.0 (was @main).
- CONTRIBUTING.md: document the manual release flow.
echo "::error title=Wrong branch or repository::Pre-releases must run from main in an apify/ repository. ref=${{ github.ref }} repo=${{ github.repository }}"
29
+
exit 1
30
+
25
31
- uses: apify/actions/git-cliff-release@v1.1.2
26
32
id: release_metadata
27
33
name: Prepare release metadata
28
34
with:
29
35
release_type: prerelease
30
36
existing_changelog_path: CHANGELOG.md
31
37
32
-
# If github.ref points to a [ci skip] commit, this workflow won't run.
33
-
# Otherwise, these checks will be launched from the `run_code_checks` workflow.
echo "::error title=Wrong branch or repository::Releases must run from main in an apify/ repository. ref=${{ github.ref }} repo=${{ github.repository }}"
echo "::error title=Missing custom_version::release_type is 'custom' but custom_version is empty. Provide a custom version (e.g. 0.1.0) and re-run the workflow."
0 commit comments