Skip to content

Commit 2167f8a

Browse files
authored
feat(changelog): add changelog trickle down action (#21)
1 parent ad665fc commit 2167f8a

File tree

14 files changed

+35427
-117
lines changed

14 files changed

+35427
-117
lines changed

actions/run-lighthouse-tests/dist/index.cjs

Lines changed: 34 additions & 33 deletions
Large diffs are not rendered by default.

actions/setup-elementor-env/dist/index.cjs

Lines changed: 30 additions & 29 deletions
Large diffs are not rendered by default.

actions/setup-wp-env/dist/index.cjs

Lines changed: 35 additions & 34 deletions
Large diffs are not rendered by default.
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Do not commit your actual .env file to Git! This may contain secrets or other
2+
# private information.
3+
4+
# Enable/disable step debug logging (default: `false`). For local debugging, it
5+
# may be useful to set it to `true`.
6+
ACTIONS_STEP_DEBUG=true
7+
8+
# GitHub Actions inputs should follow `INPUT_<name>` format (case-insensitive).
9+
# if you want to run locally, token needs to be inputted, just don't merge it :)
10+
INPUT_token=""
11+
12+
# GitHub Actions default environment variables. These are set for every run of a
13+
# workflow and can be used in your actions. Setting the value here will override
14+
# any value set by the local-action tool.
15+
# https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
16+
17+
# CI="true"
18+
# GITHUB_ACTION=""
19+
# GITHUB_ACTION_PATH=""
20+
# GITHUB_ACTION_REPOSITORY=""
21+
# GITHUB_ACTIONS=""
22+
# GITHUB_ACTOR="mona"
23+
# GITHUB_ACTOR_ID="123456789"
24+
# GITHUB_API_URL=""
25+
# GITHUB_BASE_REF=""
26+
# GITHUB_ENV=""
27+
# GITHUB_EVENT_NAME=""
28+
# GITHUB_EVENT_PATH=""
29+
# GITHUB_GRAPHQL_URL=""
30+
# GITHUB_HEAD_REF=""
31+
# GITHUB_JOB=""
32+
# GITHUB_OUTPUT=""
33+
# GITHUB_PATH=""
34+
# GITHUB_REF=""
35+
# GITHUB_REF_NAME=""
36+
# GITHUB_REF_PROTECTED=""
37+
# GITHUB_REF_TYPE=""
38+
# GITHUB_REPOSITORY=""
39+
# GITHUB_REPOSITORY_ID=""
40+
# GITHUB_REPOSITORY_OWNER=""
41+
# GITHUB_REPOSITORY_OWNER_ID=""
42+
# GITHUB_RETENTION_DAYS=""
43+
# GITHUB_RUN_ATTEMPT=""
44+
# GITHUB_RUN_ID=""
45+
# GITHUB_RUN_NUMBER=""
46+
# GITHUB_SERVER_URL=""
47+
# GITHUB_SHA=""
48+
# GITHUB_STEP_SUMMARY=""
49+
# GITHUB_TRIGGERING_ACTOR=""
50+
# GITHUB_WORKFLOW=""
51+
# GITHUB_WORKFLOW_REF=""
52+
# GITHUB_WORKFLOW_SHA=""
53+
# GITHUB_WORKSPACE=""
54+
# RUNNER_ARCH=""
55+
# RUNNER_DEBUG=""
56+
# RUNNER_NAME=""
57+
# RUNNER_OS=""
58+
# RUNNER_TEMP=""
59+
# RUNNER_TOOL_CACHE=""
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Trickle Down Changelog GH Action
2+
3+
This action will open PRs in downstream release branches with changes from the changelog.
4+
For example:
5+
6+
- If you update the current GA branch with changes, you will also need to update beta branch and main branches.
7+
- This action will open PRs in beta and main branches with the changes from the changelog.
8+
9+
## Inputs
10+
11+
### `token`
12+
13+
**Required** The GitHub token to use for authentication.
14+
15+
## Usage
16+
17+
```yaml
18+
jobs:
19+
trickle-down-changelog:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v2
24+
- name: Run action
25+
uses: elementor/elementor-pro/.github/actions/trickle-down-changelog@main
26+
with:
27+
token: ${{ secrets.GITHUB_TOKEN }}
28+
```
29+
30+
## Build
31+
32+
This action uses `tsup` to build the modules inside the javascript file, so no need to install any dependencies, **make sure to build before merging**.
33+
34+
run `npm run build` to build the action. The build artifacts will be stored in the `dist/` directory.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: 'Trickle down changelog action'
2+
description: 'Create PRs for changelog changes'
3+
inputs:
4+
token:
5+
description: 'GitHub token'
6+
required: true
7+
8+
runs:
9+
using: node20
10+
main: 'dist/index.js'

0 commit comments

Comments
 (0)