diff options
| author | Dax Raad <[email protected]> | 2026-01-30 09:56:06 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2026-01-30 09:56:06 -0500 |
| commit | 9493316502729292be463d55553c01c30edd5595 (patch) | |
| tree | 0e1696493787a24188eb59259ac63e7f01cf7793 /.github | |
| parent | 08fa7f71884702df9ee2e69a840a1eaeb5685df7 (diff) | |
| download | opencode-9493316502729292be463d55553c01c30edd5595.tar.gz opencode-9493316502729292be463d55553c01c30edd5595.zip | |
ci
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/test-homebrew-clone.yml | 39 |
1 files changed, 39 insertions, 0 deletions
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 }} |
