From 74a6c748675452a88b0e38cd8a2b1608e54f68fc Mon Sep 17 00:00:00 2001 From: C4 Patino Date: Tue, 4 Nov 2025 23:16:09 -0600 Subject: [PATCH] feat: updated tailscale acl script in to work with forgejo --- {.github => .forgejo}/workflows/tailscale.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) rename {.github => .forgejo}/workflows/tailscale.yml (64%) diff --git a/.github/workflows/tailscale.yml b/.forgejo/workflows/tailscale.yml similarity index 64% rename from .github/workflows/tailscale.yml rename to .forgejo/workflows/tailscale.yml index 27ff6cf..376facd 100755 --- a/.github/workflows/tailscale.yml +++ b/.forgejo/workflows/tailscale.yml @@ -11,26 +11,30 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5.0.0 + with: + sparse-checkout-cone-mode: false + sparse-checkout: | + policy.hujson - name: fetch version cache - uses: actions/cache@v4 + uses: actions/cache@v4.3.0 with: path: ./version-cache.json key: version-cache.json-${{ github.run_id }} restore-keys: | version-cache.json- - name: deploy acl - if: github.event_name == 'push' + if: forgejo.event_name == 'push' id: deploy-acl - uses: tailscale/gitops-acl-action@v1 + uses: https://github.com/tailscale/gitops-acl-action@v1.3.1 with: api-key: ${{ secrets.TS_API_KEY }} tailnet: ${{ secrets.TS_TAILNET }} action: apply - name: test acl - if: github.event_name == 'pull_request' + if: forgejo.event_name == 'pull_request' id: test-acl - uses: tailscale/gitops-acl-action@v1 + uses: https://github.com/tailscale/gitops-acl-action@v1.3.1 with: api-key: ${{ secrets.TS_API_KEY }} tailnet: ${{ secrets.TS_TAILNET }}