ci: tailscale workflow now tests acl before deploying regardless of event

This commit is contained in:
Ceferino Patino 2026-06-09 15:10:12 -05:00
commit f4cef157f1
No known key found for this signature in database

View file

@ -23,6 +23,13 @@ jobs:
key: version-cache.json-${{ github.run_id }} key: version-cache.json-${{ github.run_id }}
restore-keys: | restore-keys: |
version-cache.json- version-cache.json-
- name: test acl
id: test-acl
uses: https://github.com/tailscale/gitops-acl-action@v1.3.1
with:
api-key: ${{ secrets.TS_API_KEY }}
tailnet: ${{ secrets.TS_TAILNET }}
action: test
- name: deploy acl - name: deploy acl
if: forgejo.event_name == 'push' if: forgejo.event_name == 'push'
id: deploy-acl id: deploy-acl
@ -31,11 +38,3 @@ jobs:
api-key: ${{ secrets.TS_API_KEY }} api-key: ${{ secrets.TS_API_KEY }}
tailnet: ${{ secrets.TS_TAILNET }} tailnet: ${{ secrets.TS_TAILNET }}
action: apply action: apply
- name: test acl
if: forgejo.event_name == 'pull_request'
id: test-acl
uses: https://github.com/tailscale/gitops-acl-action@v1.3.1
with:
api-key: ${{ secrets.TS_API_KEY }}
tailnet: ${{ secrets.TS_TAILNET }}
action: test