-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from arnested/misc
Misc improvements
- Loading branch information
Showing
6 changed files
with
87 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
time: '04:00' | ||
timezone: Europe/Copenhagen | ||
open-pull-requests-limit: 20 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
name: Lint | ||
on: pull_request | ||
|
||
# Detect if this action is already running, and cancel it. | ||
# This most likely happened because a second push has been made to a branch. | ||
concurrency: | ||
group: ${{ github.repository_id }}-${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
actionlint: | ||
name: GitHub Actions | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: reviewdog/action-actionlint@v1 | ||
markdownlint: | ||
name: Markdown | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run markdownlint | ||
uses: DavidAnson/markdownlint-cli2-action@v16 | ||
yamllint: | ||
name: YAML | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run Yamllint | ||
uses: frenck/[email protected] | ||
with: | ||
strict: true |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
extends: default | ||
|
||
rules: | ||
indentation: | ||
spaces: 2 | ||
line-length: disable | ||
truthy: | ||
check-keys: false | ||
braces: | ||
min-spaces-inside: 1 | ||
max-spaces-inside: 1 | ||
min-spaces-inside-empty: 0 | ||
max-spaces-inside-empty: 0 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,29 @@ | ||
# action-platformsh-url | ||
|
||
Detecting if PlatformSH is building an environment, and returning the URL when it's done deploying. | ||
Detecting if PlatformSH is building an environment, and returning the | ||
URL when it's done deploying. | ||
|
||
## Inputs | ||
|
||
- `PLATFORMSH_ID`: The ID of your platform project. | ||
- `PLATFORMSH_KEY`: The API token, generated through PlatformSH. | ||
- Login to [console.platform.sh](https://console.platform.sh) | ||
- "My Profile" > "API Tokens" > "Create API token" | ||
- Remember that this is an access token, and **should not be written in plain text.** | ||
- Add it as an encrypted repo secret - [more info at GitHub docs](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository). | ||
- Login to [console.platform.sh](https://console.platform.sh) | ||
- "My Profile" > "API Tokens" > "Create API token" | ||
- Remember that this is an access token, and **should not be written | ||
in plain text.** | ||
- Add it as an encrypted repo secret - [more info at GitHub | ||
docs](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository). | ||
- `ENVIRONMENT_NAME` (optional): The environment, to check for | ||
- By default, this is set to the `pr-xx`, using `pr-${{ github.event.pull_request.number }}` | ||
- You can also set it to check for the current branch, using `${{ github.head_ref || github.ref_name }}` | ||
- By default, this is set to the `pr-xx`, using `pr-${{ | ||
github.event.pull_request.number }}` | ||
- You can also set it to check for the current branch, using `${{ | ||
github.head_ref || github.ref_name }}` | ||
|
||
See the other inputs in [action.yml](action.yml) | ||
|
||
## See also | ||
|
||
This action is used for another action, for detecting if a platformsh environment has deployed correctly. | ||
|
||
https://github.com/rasben/action-platformsh-deploy-status | ||
This action is used for another action, for detecting if a platformsh | ||
environment has deployed correctly. | ||
|
||
<https://github.com/rasben/action-platformsh-deploy-status> |
This file contains 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