Update Terraform b2 to v0.13.0 #72
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync Tailscale | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| acl-sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check if Tailscale file has changed | |
| id: tailscale-changes | |
| uses: tj-actions/changed-files@e9772d140489982e0e3704fea5ee93d536f1e275 # v45 | |
| with: | |
| files: | | |
| policy.hujson | |
| - uses: actions/checkout@v4 | |
| - name: Sync ACL with Tailscale | |
| if: github.event_name == 'push' && steps.tailscale-changes.outputs.any_changed == 'true' | |
| id: deploy-acl | |
| uses: tailscale/gitops-acl-action@v1 | |
| with: | |
| api-key: ${{ secrets.TS_API_KEY }} | |
| tailnet: ${{ secrets.TS_TAILNET }} | |
| action: apply | |
| - name: Test newer ACL configs | |
| if: github.event_name == 'pull_request' && steps.tailscale-changes.outputs.any_changed == 'true' | |
| id: test-acl | |
| uses: tailscale/gitops-acl-action@v1 | |
| with: | |
| api-key: ${{ secrets.TS_API_KEY }} | |
| tailnet: ${{ secrets.TS_TAILNET }} | |
| action: test |