diff options
Diffstat (limited to '.github/workflows')
| -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 }} |
