Website: Fix formatting issues in Github actions article (#12088)
Changes: - Replaced the double curly brackets in the Github action examples to prevent the Fleet website from interpreting those examples as [Vue templates](https://vuejs.org/guide/essentials/template-syntax.html#text-interpolation) (Which causes Javascript errors and prevents the page from rendering) - Updated the indentation of images in ordered lists and added newlines to keep the formatting consistent.
This commit is contained in:
@@ -20,8 +20,10 @@ Fleet maintains a GitHub Action for applying the latest configuration profiles i
|
||||
1. Overview:
|
||||
1. Create a `.github/workflows` directory in your repo if it does not already exist.
|
||||
2. Inside the `.github/workflows` directory, create a new file named `fleetctl-team.yml`
|
||||
3. In the `fleetctl-team.yml`, add the [minimum recommended workflow](https://github.com/fleetdm/fleet/blob/main/.github/workflows/example-workflow.yaml): \
|
||||
``` \
|
||||
3. In the `fleetctl-team.yml`, add the [minimum recommended workflow](https://github.com/fleetdm/fleet/blob/main/.github/workflows/example-workflow.yaml):
|
||||
|
||||
|
||||
```
|
||||
name: Apply latest configuration profiles (example)
|
||||
on:
|
||||
push:
|
||||
@@ -33,7 +35,7 @@ name: Apply latest configuration profiles (example)
|
||||
|
||||
# This allows a subsequently queued workflow run to interrupt previous runs
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id}}
|
||||
group: ${ github.workflow }-${ github.head_ref || github.run_id}
|
||||
cancel-in-progress: true
|
||||
|
||||
defaults:
|
||||
@@ -45,9 +47,9 @@ name: Apply latest configuration profiles (example)
|
||||
contents: read
|
||||
|
||||
env:
|
||||
FLEET_API_TOKEN: ${{ secrets.FLEET_API_TOKEN }}
|
||||
FLEET_URL: ${{ secrets.FLEET_URL }}
|
||||
TOKEN_USED_BY_PROFILE: ${{ secrets.TOKEN_USED_BY_PROFILE }}
|
||||
FLEET_API_TOKEN: ${ secrets.FLEET_API_TOKEN }
|
||||
FLEET_URL: ${ secrets.FLEET_URL }
|
||||
TOKEN_USED_BY_PROFILE: ${ secrets.TOKEN_USED_BY_PROFILE }
|
||||
|
||||
jobs:
|
||||
apply-profiles:
|
||||
@@ -72,30 +74,36 @@ name: Apply latest configuration profiles (example)
|
||||
2. Using the GitHub UI:
|
||||
1. On GitHub.com, navigate to the main page of the repository.
|
||||
2. Under your repository name, click **Actions**.
|
||||

|
||||
|
||||
3. Create a new Action by either
|
||||
1. Following the link to _set up a workflow yourself_
|
||||

|
||||
Or
|
||||

|
||||
|
||||
3. Create a new Action by either
|
||||
|
||||
1. Following the link to _set up a workflow yourself_
|
||||
|
||||

|
||||
|
||||
**Or**
|
||||
|
||||
2. Clicking the add new button.
|
||||
7. Name your yaml file `fleetctl-team.yml`
|
||||

|
||||
|
||||
7. Name your yaml file `fleetctl-team.yml`
|
||||

|
||||
|
||||
8. Under _Marketplace_ in the right column, search for “Fleet.”
|
||||

|
||||

|
||||
|
||||
9. Click on _Apply latest configuration profiles via Fleet_ to expand the listing.
|
||||

|
||||

|
||||
|
||||
10. Click the copy icon
|
||||

|
||||

|
||||
|
||||
11. Paste into your yaml file, and set the variables
|
||||

|
||||

|
||||
|
||||
12. Click **Commit changes…**
|
||||

|
||||

|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user