use CLI rather than action for factory workflow push (#2067)

* use CLI rather than action for factory workflow push

* update elasticclaw version

* replace inline elasticclaw token with env var
This commit is contained in:
Xav Paice
2026-07-09 07:45:29 +12:00
committed by GitHub
parent e0e45b0dc3
commit 65bd747c50
+21 -16
View File
@@ -2,31 +2,36 @@ name: Publish ElasticClaw Workflow
on:
push:
branches:
- main
branches: [main]
paths:
- ".factory-workflows/dependency-update.yaml"
- ".factory-workflows/**"
workflow_dispatch:
jobs:
publish:
name: Publish workflow (${{ matrix.workflow }})
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
workflow:
- .factory-workflows/dependency-update.yaml
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Publish workflow (dependency-update)
uses: elasticclaw/actions/publish-workflow@main
with:
hub-endpoint: https://factory.repldev.com
token: ${{ secrets.ELASTICCLAW_TOKEN }}
workspace: replicated-troubleshoot
path: ${{ matrix.workflow }}
- name: Install elasticclaw
env:
ELASTICCLAW_VERSION: "2026.07.07"
run: |
set -euo pipefail
base="https://github.com/elasticclaw/elasticclaw/releases/download/$ELASTICCLAW_VERSION"
curl -fsSLO "$base/elasticclaw-linux-amd64"
curl -fsSLO "$base/checksums.txt"
grep " elasticclaw-linux-amd64$" checksums.txt | sha256sum -c -
chmod +x elasticclaw-linux-amd64
sudo mv elasticclaw-linux-amd64 /usr/local/bin/elasticclaw
- name: Push workflows
env:
ELASTICCLAW_HUB_URL: https://factory.repldev.com
ELASTICCLAW_CLAW_TOKEN: ${{ secrets.ELASTICCLAW_TOKEN }}
run: |
elasticclaw workflow push --workspace replicated-troubleshoot ${{ matrix.workflow }}