Commit 6e943fa1c4e for woocommerce
commit 6e943fa1c4e06f8b6a5a5de5f43bbacc6d942b64
Author: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
Date: Mon Jul 20 12:24:54 2026 +0300
Remove the trunk snapshot build workflow (#66785)
diff --git a/.github/workflows/create-trunk-snapshot-build.yml b/.github/workflows/create-trunk-snapshot-build.yml
deleted file mode 100644
index e68f30669c5..00000000000
--- a/.github/workflows/create-trunk-snapshot-build.yml
+++ /dev/null
@@ -1,72 +0,0 @@
-name: 'Create Trunk Snapshot Build'
-on:
- workflow_dispatch:
-
-concurrency:
- group: ${{ github.workflow }}
- cancel-in-progress: false
-
-env:
- SOURCE_REF: trunk
- TARGET_REF: trunk-snapshot
-
-permissions: {}
-
-jobs:
- build:
- if: github.repository_owner == 'woocommerce'
- name: 'Create Trunk Snapshot Build'
-
- runs-on: ubuntu-latest
- permissions:
- contents: write
- steps:
- - name: 'Update next tag commit ref'
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
- with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
- script: |
- const sourceRef = process.env.SOURCE_REF;
- const targetRef = process.env.TARGET_REF;
- const branchData = await github.rest.repos.getBranch({
- ...context.repo,
- branch: sourceRef,
- });
-
- await github.rest.git.updateRef({
- ...context.repo,
- ref: `tags/${ targetRef }`,
- sha: branchData.data.commit.sha,
- });
-
- - name: 'Checkout ref'
- uses: 'actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0' # v7.0.0
- with:
- ref: ${{ env.TARGET_REF }}
-
- - name: 'Setup WooCommerce Monorepo'
- uses: './.github/actions/setup-woocommerce-monorepo'
- with:
- pull-package-deps: '@woocommerce/plugin-woocommerce'
-
- - name: 'Build zip'
- working-directory: plugins/woocommerce
- run: bash bin/build-zip.sh
-
- - name: 'Set build variables'
- id: build_vars
- shell: bash
- run: |
- echo "BUILD_DATE=$(date -u +"%Y-%m-%d")" >> $GITHUB_OUTPUT
- echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
-
- - name: 'Upload trunk snapshot build'
- working-directory: plugins/woocommerce
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- BUILD_DATE: ${{ steps.build_vars.outputs.BUILD_DATE }}
- SHORT_SHA: ${{ steps.build_vars.outputs.SHORT_SHA }}
- run: |
- asset_name="woocommerce-${BUILD_DATE}-${SHORT_SHA}-trunk-snapshot.zip"
- cp woocommerce.zip "$asset_name"
- gh release upload "$TARGET_REF" "$asset_name" --clobber --repo "$GITHUB_REPOSITORY"