From e5f2c257b57a700bca2822186323db69b9e838d3 Mon Sep 17 00:00:00 2001 From: Ievgen Pyrogov <207112+gmile@users.noreply.github.com> Date: Tue, 17 Dec 2024 13:14:01 +0100 Subject: [PATCH] Update README.md Remove leading space in the code blocks, also correctly nest code block under a list item --- README.md | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index b7ee7c9..24587c7 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,12 @@ This GitHub Action connects to your [Tailscale network](https://tailscale.com) by adding a step to your workflow. ```yaml - - name: Tailscale - uses: tailscale/github-action@v2 - with: - oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} - oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} - tags: tag:ci +- name: Tailscale + uses: tailscale/github-action@v2 + with: + oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} + oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} + tags: tag:ci ``` Subsequent steps in the Action can then access nodes in your Tailnet. @@ -41,38 +41,38 @@ Lock](https://tailscale.com/kb/1226/tailnet-lock) enabled network, you need to: https://tailscale.com/kb/1278/tailscaled#flags-to-tailscaled) for the client to store the Tailnet Key Authority data in. -```yaml + ```yaml - name: Tailscale uses: tailscale/github-action@v2 with: authkey: tskey-auth-... statedir: /tmp/tailscale-state/ -``` + ``` ## Defining Tailscale version Which Tailscale version to use can be set like this: ```yaml - - name: Tailscale - uses: tailscale/github-action@v2 - with: - oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} - oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} - tags: tag:ci - version: 1.52.0 +- name: Tailscale + uses: tailscale/github-action@v2 + with: + oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} + oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} + tags: tag:ci + version: 1.52.0 ``` If you'd like to specify the latest version, simply set the version as `latest` ```yaml - - name: Tailscale - uses: tailscale/github-action@v2 - with: - oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} - oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} - tags: tag:ci - version: latest +- name: Tailscale + uses: tailscale/github-action@v2 + with: + oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} + oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} + tags: tag:ci + version: latest ``` You can find the latest Tailscale stable version number at