Skip to content

Commit 66dfca2

Browse files
authored
Merge branch 'main' into add-commit-output
2 parents 4e2862f + 3b4fcce commit 66dfca2

14 files changed

Lines changed: 1972 additions & 8167 deletions

‎.github/renovate.json‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended"
5+
],
6+
"customManagers": [
7+
{
8+
"customType": "regex",
9+
"fileMatch": ["^action\\.yml$"],
10+
"matchStrings": ["using: 'node(?<currentValue>\\d+)'"],
11+
"depNameTemplate": "node",
12+
"datasourceTemplate": "node-version",
13+
"versioningTemplate": "node"
14+
}
15+
]
16+
}

‎.github/settings.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Upstream changes from _extends are only recognized when modifications are made to this file in the default branch.
2+
_extends: .github
3+
repository:
4+
name: github-action-pre-commit
5+
description: A GitHub action to run pre-commit and allow overriding the git config user name and email
6+
homepage: https://cloudposse.com/accelerate
7+
topics: ""
8+

‎.github/workflows/branch.yml‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Branch
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
- release/**
7+
types: [opened, synchronize, reopened]
8+
push:
9+
branches:
10+
- main
11+
- release/v*
12+
paths-ignore:
13+
- '.github/**'
14+
- 'docs/**'
15+
- 'examples/**'
16+
- 'test/**'
17+
- 'README.md'
18+
19+
permissions:
20+
contents: write
21+
actions: write
22+
23+
jobs:
24+
github-action:
25+
uses: cloudposse/.github/.github/workflows/shared-github-action.yml@main
26+
secrets: inherit

‎.github/workflows/deploy.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
name: pr
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions/setup-node@v2
15-
- uses: actions/setup-python@v2
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
- uses: actions/setup-python@v5
1616
- run: pip install virtualenv
1717
- run: make
1818
- name: self test newly built action

‎.github/workflows/release.yml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Release
2+
on:
3+
release:
4+
types: [published]
5+
6+
permissions:
7+
id-token: write
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
github-action:
13+
uses: cloudposse/.github/.github/workflows/shared-release-branches.yml@main
14+
secrets: inherit

‎.pre-commit-config.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.0.1
3+
rev: v4.3.0
44
hooks:
55
- id: check-json
66
- id: check-yaml
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
99
- repo: https://github.com/pre-commit/mirrors-eslint
10-
rev: v8.0.0-beta.1
10+
rev: v8.56.0
1111
hooks:
1212
- id: eslint
1313
args: [--fix]

‎Makefile‎

Lines changed: 0 additions & 24 deletions
This file was deleted.

‎README.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
pre-commit:
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: actions/checkout@v2
28-
- uses: actions/setup-python@v2
29-
- uses: cloudposse/github-action-pre-commit@v2.1.2
27+
- uses: actions/checkout@v4
28+
- uses: actions/setup-python@v5
29+
- uses: cloudposse/github-action-pre-commit@v4.0.0
3030
```
3131
3232
This does a few things:
@@ -44,7 +44,7 @@ Here's a sample step configuration that only runs the `flake8` hook against all
4444
the files (use the template above except for the `pre-commit` action):
4545

4646
```yaml
47-
- uses: cloudposse/github-action-pre-commit@v2.1.2
47+
- uses: cloudposse/github-action-pre-commit@v4.0.0
4848
with:
4949
extra_args: flake8 --all-files
5050
```
@@ -69,7 +69,7 @@ pushing
6969
next is passing the token to the pre-commit action
7070

7171
```yaml
72-
- uses: cloudposse/github-action-pre-commit@v2.1.2
72+
- uses: cloudposse/github-action-pre-commit@v4.0.0
7373
with:
7474
token: ${{ secrets.GITHUB_TOKEN }}
7575
git_user_name: pre-commit

‎action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ outputs:
2828
committed:
2929
description: Commit ID of auto-fix pushed, if enabled and changes were required
3030
runs:
31-
using: 'node12'
31+
using: 'node24'
3232
main: 'dist/index.js'

‎atmos.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import:
2+
- https://raw.githubusercontent.com/cloudposse/.github/refs/heads/main/.github/atmos/github-action.yaml

0 commit comments

Comments
 (0)