Skip to content

Commit

Permalink
use app for generating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
npalm committed Jul 28, 2023
1 parent dfaa425 commit 5ca819a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,21 @@ jobs:
name: Auto update terraform docs
runs-on: ubuntu-latest
steps:
- if: github.event_name == 'push'
- name: Get installation token
uses: philips-software/app-token-action@a37926571e4cec6f219e06727136efdd073d8657 # ratchet:philips-software/app-token-action@v1.1.2
id: token
with:
app_id: ${{ secrets.FOREST_RELEASER_APP_ID }}
app_base64_private_key: ${{ secrets.FOREST_RELEASER_APP_PRIVATE_KEY_BASE64 }}
auth_type: installation

- if: github.event_name == 'push' && github.repository_owner == 'philips-software'
name: Checkout branch
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # ratchet:actions/checkout@v3
with:
token: ${{ steps.token.outputs.token }}

- if: github.event_name == 'push' && github.repository_owner != 'philips-software'
name: Checkout branch
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # ratchet:actions/checkout@v3

Expand All @@ -31,7 +45,7 @@ jobs:
if: github.ref == 'refs/heads/main'
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # ratchet:peter-evans/create-pull-request@v5.0.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ steps.token.outputs.token || secrets.GITHUB_TOKEN }}
commit-message: "Update Terraform docs"
title: "docs: Update Terraform docs"
branch: ${{ github.event.pull_request.base.ref }}-update-docs
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ variable "runner_credit_specification" {
}

variable "enable_jit_config" {
description = "Enables JIT configuration for creating runners instead of registration token based registraton. JIT configuration will only be applied for ephemeral runners after enabling this feature. For non-ephemeral the feature is ingored. When running on GHES check first if the jit config API is available. The configuration parameter auto update is not available for JIT configuraiton, we don't now if auto updates are enabled or not when applied."
description = "Enables JIT configuration for creating runners instead of registration token based registraton. JIT configuration will only be applied for ephemeral runners after enabling this feature. For non-ephemeral the feature is ingored. When running on GHES check first if the JIT config API is available. The configuration parameter auto update is not available for JIT configuraiton, we don't now if auto updates are enabled or not when applied."
type = bool
default = false
}

0 comments on commit 5ca819a

Please sign in to comment.