Skip to content

Commit 45dbe9f

Browse files
🪲 [Fix]: Fix description length to comply with GH marketplace (#2)
## Description - Fix description length to comply with GH marketplace ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [x] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent 5395073 commit 45dbe9f

5 files changed

Lines changed: 122 additions & 120 deletions

File tree

.github/workflows/Action-Test.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
name: Action-Test
2-
3-
run-name: "Action-Test - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
4-
5-
on: [pull_request]
6-
7-
concurrency:
8-
group: ${{ github.workflow }}-${{ github.ref }}
9-
cancel-in-progress: true
10-
11-
permissions:
12-
contents: read
13-
pull-requests: read
14-
15-
jobs:
16-
ActionTestBasic:
17-
name: Action-Test - [Basic]
18-
runs-on: ubuntu-latest
19-
steps:
20-
# Need to check out as part of the test, as its a local action
21-
- name: Checkout repo
22-
uses: actions/checkout@v4
23-
24-
- name: Action-Test
25-
uses: ./
1+
name: Action-Test
2+
3+
run-name: "Action-Test - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
4+
5+
on: [pull_request]
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
permissions:
12+
contents: read
13+
pull-requests: read
14+
15+
jobs:
16+
ActionTestBasic:
17+
name: Action-Test - [Basic]
18+
runs-on: ubuntu-latest
19+
steps:
20+
# Need to check out as part of the test, as its a local action
21+
- name: Checkout repo
22+
uses: actions/checkout@v4
23+
24+
- name: Action-Test
25+
uses: ./

.github/workflows/Auto-Release.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
name: Auto-Release
2-
3-
run-name: "Auto-Release - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
4-
5-
on:
6-
pull_request_target:
7-
branches:
8-
- main
9-
types:
10-
- closed
11-
- opened
12-
- reopened
13-
- synchronize
14-
- labeled
15-
16-
concurrency:
17-
group: ${{ github.workflow }}-${{ github.ref }}
18-
cancel-in-progress: true
19-
20-
permissions:
21-
contents: write # Required to create releases
22-
pull-requests: write # Required to create comments on the PRs
23-
24-
jobs:
25-
Auto-Release:
26-
runs-on: ubuntu-latest
27-
steps:
28-
- name: Checkout Code
29-
uses: actions/checkout@v4
30-
31-
- name: Auto-Release
32-
uses: PSModule/Auto-Release@v1
33-
env:
34-
GITHUB_TOKEN: ${{ github.token }}
1+
name: Auto-Release
2+
3+
run-name: "Auto-Release - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
4+
5+
on:
6+
pull_request_target:
7+
branches:
8+
- main
9+
types:
10+
- closed
11+
- opened
12+
- reopened
13+
- synchronize
14+
- labeled
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
permissions:
21+
contents: write # Required to create releases
22+
pull-requests: write # Required to create comments on the PRs
23+
24+
jobs:
25+
Auto-Release:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout Code
29+
uses: actions/checkout@v4
30+
31+
- name: Auto-Release
32+
uses: PSModule/Auto-Release@v1
33+
env:
34+
GITHUB_TOKEN: ${{ github.token }}

.github/workflows/Linter.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
name: Linter
2-
3-
run-name: "Linter - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
4-
5-
on: [pull_request]
6-
7-
concurrency:
8-
group: ${{ github.workflow }}-${{ github.ref }}
9-
cancel-in-progress: true
10-
11-
permissions:
12-
contents: read
13-
packages: read
14-
statuses: write
15-
16-
jobs:
17-
Lint:
18-
name: Lint code base
19-
runs-on: ubuntu-latest
20-
steps:
21-
- name: Checkout repo
22-
uses: actions/checkout@v4
23-
with:
24-
fetch-depth: 0
25-
26-
- name: Lint code base
27-
uses: super-linter/super-linter/slim@latest
28-
env:
29-
GITHUB_TOKEN: ${{ github.token }}
1+
name: Linter
2+
3+
run-name: "Linter - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
4+
5+
on: [pull_request]
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
permissions:
12+
contents: read
13+
packages: read
14+
statuses: write
15+
16+
jobs:
17+
Lint:
18+
name: Lint code base
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout repo
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Lint code base
27+
uses: super-linter/super-linter/slim@latest
28+
env:
29+
GITHUB_TOKEN: ${{ github.token }}

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
A template repository for GitHub Actions
44

5+
Uses all the contexts and environment variables
6+
7+
- [Contexts | GitHub Docs](https://docs.github.com/en/actions/learn-github-actions/contexts)
8+
- [Variables | GitHub Docs](https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables)
9+
510
## Usage
611

712
### Inputs

action.yml

Lines changed: 29 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,29 @@
1-
name: Debug (by PSModule)
2-
description: |
3-
Print info from the runner environment to logs.
4-
Uses all the contexts and environment variables.
5-
- [Contexts | GitHub Docs](https://docs.github.com/en/actions/learn-github-actions/contexts)
6-
- [Variables] | GitHub Docs](https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables)
7-
author: PSModule
8-
branding:
9-
icon: clipboard
10-
color: gray
11-
12-
runs:
13-
using: composite
14-
steps:
15-
- name: Debug
16-
shell: pwsh
17-
env:
18-
CONTEXT_GITHUB: ${{ toJson(github) }}
19-
CONTEXT_ENV: ${{ toJson(env) }}
20-
# CONTEXT_VARS: ${{ toJson(vars) }}
21-
CONTEXT_JOB: ${{ toJson(job) }}
22-
# CONTEXT_JOBS: ${{ toJson(jobs) }}
23-
CONTEXT_STEPS: ${{ toJson(steps) }}
24-
CONTEXT_RUNNER: ${{ toJson(runner) }}
25-
# CONTEXT_SECRETS: ${{ toJson(secrets) }}
26-
CONTEXT_STRATEGY: ${{ toJson(strategy) }}
27-
CONTEXT_MATRIX: ${{ toJson(matrix) }}
28-
# CONTEXT_NEEDS: ${{ toJson(needs) }}
29-
CONTEXT_INPUTS: ${{ toJson(inputs) }}
30-
run: |
31-
# Debug environment
32-
. "$env:GITHUB_ACTION_PATH\scripts\main.ps1" -Verbose
1+
name: Debug (by PSModule)
2+
description: |
3+
Print info from the runner environment to logs.
4+
author: PSModule
5+
branding:
6+
icon: clipboard
7+
color: gray-dark
8+
9+
runs:
10+
using: composite
11+
steps:
12+
- name: Debug
13+
shell: pwsh
14+
env:
15+
CONTEXT_GITHUB: ${{ toJson(github) }}
16+
CONTEXT_ENV: ${{ toJson(env) }}
17+
# CONTEXT_VARS: ${{ toJson(vars) }}
18+
CONTEXT_JOB: ${{ toJson(job) }}
19+
# CONTEXT_JOBS: ${{ toJson(jobs) }}
20+
CONTEXT_STEPS: ${{ toJson(steps) }}
21+
CONTEXT_RUNNER: ${{ toJson(runner) }}
22+
# CONTEXT_SECRETS: ${{ toJson(secrets) }}
23+
CONTEXT_STRATEGY: ${{ toJson(strategy) }}
24+
CONTEXT_MATRIX: ${{ toJson(matrix) }}
25+
# CONTEXT_NEEDS: ${{ toJson(needs) }}
26+
CONTEXT_INPUTS: ${{ toJson(inputs) }}
27+
run: |
28+
# Debug environment
29+
. "$env:GITHUB_ACTION_PATH\scripts\main.ps1" -Verbose

0 commit comments

Comments
 (0)