about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ops/pipelines/static-pipeline.yaml6
1 files changed, 1 insertions, 5 deletions
diff --git a/ops/pipelines/static-pipeline.yaml b/ops/pipelines/static-pipeline.yaml
index 7e91a73439..2261b11b80 100644
--- a/ops/pipelines/static-pipeline.yaml
+++ b/ops/pipelines/static-pipeline.yaml
@@ -28,9 +28,5 @@ steps:
   - label: ":git:"
     if: "build.branch == 'refs/heads/canon'"
     command: |
-      readonly REVISION=$(git rev-list --count --first-parent HEAD)
-
       git -c 'credential.helper=/etc/secrets/buildkite-credential-helper' \
-        push origin "HEAD:refs/r/${REVISION}"
-
-      echo "Marked commit as r/${REVISION}"
+        push origin "HEAD:refs/r/$(git rev-list --count --first-parent HEAD)"