Skip to content

Fix buildx install flag and enhance release workflow with manual dispatch support#129

Merged
ChristophShyper merged 2 commits intomasterfrom
copilot/fix-buildx-release-workflow
Feb 23, 2026
Merged

Fix buildx install flag and enhance release workflow with manual dispatch support#129
ChristophShyper merged 2 commits intomasterfrom
copilot/fix-buildx-release-workflow

Conversation

Copy link
Contributor

Copilot AI commented Feb 23, 2026

Mirrors fixes from devops-infra/action-commit-push (ea9308d, 67ef619, f01d240): removes redundant install: true from buildx setup, exposes version:tag-release as a non-internal task, and adds workflow_dispatch support with duplicate-tag protection to the release workflow.

Buildx fix (auto-create-pull-request.yml, auto-create-release.yml, cron-check-dependencies.yml)

  • Removed with: install: true from docker/setup-buildx-action@v3 — redundant with current action defaults

Taskfile.cicd.yml

  • Removed internal: true from version:tag-release so it can be called directly from workflows

Release workflow (auto-create-release.yml)

  • Added workflow_dispatch trigger
  • Updated job if: to pass on manual dispatch in addition to merged release PRs
  • Create and push git tags step now captures REL_VERSION first, checks remote for existing tag, and either skips gracefully (manual dispatch) or hard-fails (automated) on duplicate:
full_remote_sha="$(git ls-remote --tags origin "refs/tags/${REL_VERSION}" 2>/dev/null | awk '{print $1}' || true)"
if [ -n "${full_remote_sha}" ]; then
  if [ "${GITHUB_EVENT_NAME}" = "workflow_dispatch" ]; then
    echo "ℹ️ INFO: Full tag '${REL_VERSION}' already exists; skipping tag creation."
  else
    echo "❌ ERROR: Full tag '${REL_VERSION}' already exists; aborting" >&2
    exit 1
  fi
else
  task version:tag-release
fi

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Fix buildx and release workflow based on recent commits Fix buildx install flag and enhance release workflow with manual dispatch support Feb 23, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request mirrors fixes from the devops-infra/action-commit-push repository to enhance the release workflow with manual dispatch support and clean up redundant Docker Buildx configuration. The changes remove deprecated install: true parameters from buildx setup, expose a previously internal task for direct workflow use, and add duplicate tag protection that behaves differently for manual vs automated releases.

Changes:

  • Removed redundant install: true from docker/setup-buildx-action@v3 across three workflow files (the action now installs by default)
  • Exposed version:tag-release task by removing internal: true flag to enable direct workflow invocation
  • Added workflow_dispatch trigger to release workflow with smart duplicate-tag handling that gracefully skips for manual runs but fails for automated ones

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
Taskfile.cicd.yml Removed internal: true from version:tag-release task to allow direct workflow invocation
.github/workflows/cron-check-dependencies.yml Removed redundant install: true parameter from buildx setup
.github/workflows/auto-create-release.yml Added workflow_dispatch trigger, updated job condition, and implemented duplicate tag detection with conditional handling
.github/workflows/auto-create-pull-request.yml Removed redundant install: true parameter from buildx setup

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


full_remote_sha="$(git ls-remote --tags origin "refs/tags/${REL_VERSION}" 2>/dev/null | awk '{print $1}' || true)"
if [ -n "${full_remote_sha}" ]; then
if [ "${GITHUB_EVENT_NAME}" = "workflow_dispatch" ]; then
Copy link

Copilot AI Feb 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The environment variable GITHUB_EVENT_NAME is not available by default in shell scripts. GitHub Actions exposes this value through the context variable github.event_name, but it needs to be explicitly passed to the shell environment. Add GITHUB_EVENT_NAME to the env section of this step with the value from the context.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants