Skip to content

Commit 16a2ff2

Browse files
Release v1.0.0
0 parents  commit 16a2ff2

File tree

13 files changed

+39619
-0
lines changed

13 files changed

+39619
-0
lines changed

.github/renovate.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended",
5+
"helpers:pinGitHubActionDigests"
6+
],
7+
"baseBranchPatterns": [
8+
"main"
9+
],
10+
"enabledManagers": [
11+
"npm",
12+
"github-actions"
13+
],
14+
"prHourlyLimit": 0,
15+
"prConcurrentLimit": 0,
16+
"semanticCommits": "enabled",
17+
"semanticCommitType": "chore",
18+
"semanticCommitScope": "deps",
19+
"commitMessageAction": "Update",
20+
"separateMajorMinor": true,
21+
"separateMinorPatch": true,
22+
"rangeStrategy": "pin",
23+
"rebaseWhen": "conflicted",
24+
"github-actions": {
25+
"managerFilePatterns": [
26+
"/^\\.github/workflows/.+\\.yml$/"
27+
]
28+
},
29+
"packageRules": [
30+
{
31+
"matchCategories": [
32+
"npm"
33+
],
34+
"enabled": true,
35+
"minimumReleaseAge": "5 days"
36+
},
37+
{
38+
"matchCategories": [
39+
"github-actions"
40+
],
41+
"enabled": true,
42+
"minimumReleaseAge": "1 days"
43+
},
44+
{
45+
"matchUpdateTypes": [
46+
"patch"
47+
],
48+
"commitMessageAction": "(Patch) Update"
49+
},
50+
{
51+
"matchUpdateTypes": [
52+
"minor"
53+
],
54+
"commitMessageAction": "(Minor) Update"
55+
},
56+
{
57+
"matchUpdateTypes": [
58+
"major"
59+
],
60+
"commitMessageAction": "(Major) Update"
61+
}
62+
],
63+
"vulnerabilityAlerts": {
64+
"dependencyDashboardApproval": true
65+
},
66+
"timezone": "America/Chicago",
67+
"schedule": [
68+
"at any time"
69+
],
70+
"dependencyDashboard": true,
71+
"dependencyDashboardTitle": "Dependency Updates",
72+
"dependencyDashboardApproval": true,
73+
"dependencyDashboardAutoclose": true
74+
}

.github/workflows/main.yml

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
name: Test Workflow
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
test:
8+
name: Test Action
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
13+
14+
- name: Setup Dates
15+
run: |
16+
date > filea.txt
17+
sleep 1
18+
date > fileb.txt
19+
sleep 1
20+
date > filec.txt
21+
22+
- name: Generate Commit Message
23+
run: |
24+
echo "commitmsg=$(echo "Test at $(date)")" >> $GITHUB_ENV
25+
26+
- name: Commit (main/main)
27+
uses: ./
28+
with:
29+
app-id: ${{ secrets.APP_ID }}
30+
app-key: ${{ secrets.APP_KEY }}
31+
repository: ${{ secrets.TEST_REPOSITORY }}
32+
baseref: main
33+
ref: main
34+
commitmsg: ${{ env.commitmsg }}
35+
files: |
36+
filea.txt
37+
fileb.txt
38+
filec.txt
39+
40+
- name: Sleep
41+
run: |
42+
sleep 1
43+
44+
- name: Setup Dates
45+
run: |
46+
date > filea.txt
47+
sleep 1
48+
date > fileb.txt
49+
sleep 1
50+
date > filec.txt
51+
52+
- name: Generate Commit Message
53+
run: |
54+
echo "commitmsg=$(echo "Test at $(date)")" >> $GITHUB_ENV
55+
56+
- name: Commit (main/undefined)
57+
uses: ./
58+
with:
59+
app-id: ${{ secrets.APP_ID }}
60+
app-key: ${{ secrets.APP_KEY }}
61+
repository: ${{ secrets.TEST_REPOSITORY }}
62+
baseref: main
63+
commitmsg: ${{ env.commitmsg }}
64+
files: |
65+
filea.txt
66+
fileb.txt
67+
filec.txt
68+
69+
- name: Sleep
70+
run: |
71+
sleep 1
72+
73+
- name: Setup Dates
74+
run: |
75+
date > filea.txt
76+
sleep 1
77+
date > fileb.txt
78+
sleep 1
79+
date > filec.txt
80+
81+
- name: Generate Commit Message
82+
run: |
83+
echo "commitmsg=$(echo "Test at $(date)")" >> $GITHUB_ENV
84+
85+
- name: Generate Branch Name
86+
run: |
87+
echo "BRANCH=$(echo "test-$(date +%s)")" >> $GITHUB_ENV
88+
89+
- name: Commit (main/new)
90+
uses: ./
91+
with:
92+
app-id: ${{ secrets.APP_ID }}
93+
app-key: ${{ secrets.APP_KEY }}
94+
repository: ${{ secrets.TEST_REPOSITORY }}
95+
baseref: main
96+
ref: ${{ env.BRANCH }}
97+
commitmsg: ${{ env.commitmsg }}
98+
files: |
99+
filea.txt
100+
fileb.txt
101+
filec.txt

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Dependency Files
2+
node_modules
3+
4+
5+
#Secrets
6+
*.pem
7+
*.txt
8+
*.sh

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Henry Griffiths
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Verified Commit App
2+
3+
This action uses a user-generated app to author commits to a repository
4+
5+
# Usage
6+
```yaml
7+
- uses: henrygriffiths/verified-commit-app@v1
8+
with:
9+
app-id: ''
10+
# Required
11+
# ID of App
12+
13+
app-key: ''
14+
# Required
15+
# App Private Key (Pem File)
16+
17+
repository: ''
18+
# Optional
19+
# Repository to Commit To (Defaults to ${{ github.repository }})
20+
21+
baseref: ''
22+
# Optional
23+
# Ref to Base Commit Off Of (Defaults to ${{ github.ref }})
24+
25+
ref: ''
26+
# Optional
27+
# Ref to Commit To (Defaults to baseref Input)
28+
29+
commitmsg: ''
30+
# Optional
31+
# Commit Message (Defaults to Empty)
32+
33+
files: ''
34+
# Required
35+
# Files To Commit
36+
37+
```
38+
39+
# Examples
40+
41+
## Commit to Current Branch
42+
```yaml
43+
- uses: henrygriffiths/verified-commit-app@v1
44+
with:
45+
app-id: ${{ secrets.app-id }}
46+
app-key: ${{ secrets.app-key }}
47+
commitmsg: 'message'
48+
files: |
49+
filea.txt
50+
fileb.txt
51+
```
52+
53+
## Commit to a Different Branch
54+
```yaml
55+
- uses: henrygriffiths/verified-commit-app@v1
56+
with:
57+
app-id: ${{ secrets.app-id }}
58+
app-key: ${{ secrets.app-key }}
59+
commitmsg: 'message'
60+
ref: branch2
61+
files: |
62+
filea.txt
63+
fileb.txt
64+
```
65+
66+
## Commit to a Different Repository
67+
```yaml
68+
- uses: henrygriffiths/verified-commit-app@v1
69+
with:
70+
app-id: ${{ secrets.app-id }}
71+
app-key: ${{ secrets.app-key }}
72+
repository: example/example
73+
baseref: main
74+
ref: main
75+
commitmsg: 'message'
76+
files: |
77+
filea.txt
78+
fileb.txt
79+
```
80+
81+
# License
82+
83+
This project is released under the [MIT License](LICENSE)

action.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Verified Commit App
2+
description: Commits Files to a Repository Using App Authorization
3+
author: henrygriffiths
4+
5+
inputs:
6+
app-id:
7+
description: App ID
8+
required: true
9+
10+
app-key:
11+
description: App Private Key (Pem File)
12+
required: true
13+
14+
repository:
15+
description: Repository to Commit To (Defaults to github.repository)
16+
required: false
17+
18+
baseref:
19+
description: Ref to Base Commit Off Of (Defaults to github.ref)
20+
required: false
21+
22+
ref:
23+
description: Ref to Commit To (Defaults to baseref)
24+
required: false
25+
26+
commitmsg:
27+
description: Commit Message (Defaults to Empty)
28+
required: false
29+
30+
files:
31+
description: Files To Commit
32+
required: true
33+
34+
runs:
35+
using: node24
36+
main: dist/index.js

0 commit comments

Comments
 (0)