Skip to content

fix: re-add discord init #17

fix: re-add discord init

fix: re-add discord init #17

name: Sync Tailscale ACLs
on:
push:
branches: [ "main" ]
paths:
- 'tailscale/**'
pull_request:
branches: [ "main" ]
paths:
- 'tailscale/**'
jobs:
acls:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy ACL
if: github.event_name == 'push'
id: deploy-acl
uses: tailscale/gitops-acl-action@v1
with:
api-key: ${{ secrets.TS_API_KEY }}
tailnet: ${{ secrets.TS_TAILNET }}
policy-file: tailscale/acl.hujson
action: apply
- name: Test ACL
if: github.event_name == 'pull_request'
id: test-acl
uses: tailscale/gitops-acl-action@v1
with:
api-key: ${{ secrets.TS_API_KEY }}
tailnet: ${{ secrets.TS_TAILNET }}
policy-file: tailscale/acl.hujson
action: test
- name: Notify discord
uses: up9cloud/[email protected]
if: cancelled() == false
env:
GITHUB_JOB_STATUS: ${{ job.status }}
DISCORD_WEBHOOK_URL: ${{ secrets.LAB_DISCORD_WEBHOOK }}