From 9493316502729292be463d55553c01c30edd5595 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Fri, 30 Jan 2026 09:56:06 -0500 Subject: ci --- .github/workflows/test-homebrew-clone.yml | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/test-homebrew-clone.yml (limited to '.github/workflows') diff --git a/.github/workflows/test-homebrew-clone.yml b/.github/workflows/test-homebrew-clone.yml new file mode 100644 index 000000000..309e32063 --- /dev/null +++ b/.github/workflows/test-homebrew-clone.yml @@ -0,0 +1,39 @@ +name: test-homebrew-clone + +on: + workflow_dispatch: {} + +permissions: + contents: read + +jobs: + clone: + runs-on: blacksmith-4vcpu-ubuntu-2404 + steps: + - uses: actions/checkout@v3 + + - name: Setup git committer + id: committer + uses: ./.github/actions/setup-git-committer + with: + opencode-app-id: ${{ vars.OPENCODE_APP_ID }} + opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }} + + - name: Verify token present + run: | + if [ -z "${GITHUB_TOKEN}" ]; then + echo "GITHUB_TOKEN is missing" + exit 1 + fi + echo "GITHUB_TOKEN is present" + env: + GITHUB_TOKEN: ${{ steps.committer.outputs.token }} + + - name: Clone homebrew tap + run: | + tap="https://x-access-token:${GITHUB_TOKEN}@github.com/anomalyco/homebrew-tap.git" + git clone "${tap}" ./dist/homebrew-tap + cd ./dist/homebrew-tap + git status -sb + env: + GITHUB_TOKEN: ${{ steps.committer.outputs.token }} -- cgit v1.2.3