You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+69-35Lines changed: 69 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
and create a **pull request** with the updates (if enabled).
11
11
It is an automated dependency updater similar to GitHub's **Dependabot** but for GitHub Actions.
12
12
13
-
### How Does It Work:
13
+
### How Does It Work?
14
14
15
15
* GitHub Actions Version Updater first goes through all the **workflows**
16
16
in a repository and **checks for updates** for each of the action used in those workflows.
@@ -22,21 +22,78 @@ It is an automated dependency updater similar to GitHub's **Dependabot** but for
22
22
23
23
* Finally, a pull request is created with the newly created branch. (If enabled)
24
24
25
-
### Supported Version Fetch Sources:
25
+
### Supported Version Fetch Sources
26
26
27
-
-**`release-tag`** (default): Uses **specific version tag** from **the latest release** to update a GitHub Action. (e.g. `actions/checkout@v1.2.3`)
28
-
-**`release-commit-sha`**: Uses **the latest release** tag **commit SHA** to update a GitHub Action. (e.g. `actions/checkout@c18e2a1b1a95d0c5c63af210857e8718a479f56f`)
29
-
-**`default-branch-sha`**: Uses **default branch** (e.g: `main`, `master`) **latest commit SHA** to update a GitHub Action. (e.g. `actions/checkout@c18e2a1b1a95d0c5c63af210857e8718a479f56f`)
27
+
-**`release-tag` (default):** Uses **specific release tag** from **the latest release** to update a GitHub Action. (e.g. `actions/checkout@v1.2.3`)
28
+
29
+
-**`release-commit-sha`:** Uses the **latest release tag commit SHA** to update a GitHub Action. (e.g. `actions/checkout@c18e2a1b1a95d0c5c63af210857e8718a479f56f`)
30
+
31
+
-**`default-branch-sha`:** Uses **default branch** (e.g: `main`, `master`) **latest commit SHA** to update a GitHub Action. (e.g. `actions/checkout@c18e2a1b1a95d0c5c63af210857e8718a479f56f`)
30
32
31
33
You can use `update_version_with` input option to select one of them. (e.g. `update_version_with: 'default-branch-sha'`)
32
34
33
-
### Usage:
35
+
### Release Types
36
+
37
+
-**`all` (default):** Actions with **any** new release will be updated.
38
+
-**`major`:** Actions with only new **major** release will be updated.
39
+
-**`minor`:** Actions with only new **minor** release will be updated.
40
+
-**`patch`:** Actions with only new **patch** release will be updated.
41
+
42
+
You can use `release_types` input option to select one/all of them. (e.g. `"major, minor"`)
43
+
44
+
### Usage
34
45
35
46
We recommend running this action on a [`schedule`](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#schedule)
36
47
event or a [`workflow_dispatch`](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch) event.
37
48
38
49
To integrate `GitHub Actions Version Updater` on your repository, create a `YAML` file
39
-
inside `.github/workflows/` directory (`.github/workflows/updater.yaml`) add the following into the file:
50
+
inside `.github/workflows/` directory (e.g: `.github/workflows/updater.yaml`) add the following lines into the file:
| `token` | Yes | GitHub Access Token with `workflow` scope (The Token needs to be added to the actions secrets) | `null` | `${{ secrets.WORKFLOW_SECRET }}` |
85
+
| `committer_username` | No | Name of the user who will commit the changes to GitHub | "github-actions[bot]" | "Test User" |
86
+
| `committer_email` | No | Email Address of the user who will commit the changes to GitHub | "github-actions[bot]@users.noreply.github.com" | "test@test.com" |
87
+
| `commit_message` | No | Commit message for the commits created by the action | "Update GitHub Action Versions" | "Custom Commit Message" |
88
+
| `pull_request_title` | No | Title of the pull requests generated by the action | "Update GitHub Action Versions" | "Custom PR Title" |
89
+
| `ignore` | No | A comma separated string of GitHub Actions to ignore updates for | `null` | "actions/checkout@v2, actions/cache@v2" |
90
+
| `skip_pull_request` | No | If **"true"**, the action will only check for updates and if any update is found the job will fail and update the build summary with the diff (**Options:** "true", "false") | "false" | "true" |
91
+
| `update_version_with` | No | Use The Latest Release Tag/Commit SHA or Default Branch Commit SHA to update the actions (**options:** "release-tag", "release-commit-sha", "default-branch-sha"') | "release-tag" | "release-commit-sha" |
92
+
| `release_types` | No | A comma separated string of release types to use when updating the actions. By default, all release types are used to update the actions. Only Applicable for **"release-tag", "release-commit-sha"** (**Options:** "major", "minor", "patch" **[one or many seperated by comma]**) | "all" | "minor, patch" |
93
+
| `pull_request_user_reviewers` | No | A comma separated string (usernames) which denotes the users that should be added as reviewers to the pull request | `null` | "octocat, hubot, other_user" |
94
+
| `pull_request_team_reviewers` | No | A comma separated string (team slugs) which denotes the teams that should be added as reviewers to the pull request | `null` | "justice-league, other_team" |
description: 'Commit message for the commits by the action'
17
+
description: 'Commit message for the commits created by the action'
18
18
required: false
19
19
default: 'Update GitHub Action Versions'
20
20
pull_request_title:
21
-
description: 'Title for the pull requests generated by the action'
21
+
description: 'Title of the pull requests generated by the action'
22
22
required: false
23
23
default: 'Update GitHub Action Versions'
24
24
ignore:
25
-
description: 'A JSON array or comma separated string which denotes the actions that should not be updated'
25
+
description: 'A comma separated string of GitHub Actions to ignore updates for'
26
26
required: false
27
27
default: ''
28
28
token:
29
-
description: 'Personal Access token with workflow permission'
29
+
description: 'GitHub Personal Access Token with `workflow` scope'
30
30
required: true
31
31
skip_pull_request:
32
32
description: 'Skip Pull Request creation'
33
33
required: false
34
34
default: 'false'
35
35
update_version_with:
36
-
description: 'Use Latest Release Tag/Commit SHA or Default Branch Commit SHA to update. options: "release-tag" (default), "release-commit-sha", "default-branch-sha"'
36
+
description: 'Use The Latest Release Tag/Commit SHA or Default Branch Commit SHA to update the actions. options: "release-tag" (default), "release-commit-sha", "default-branch-sha"'
37
37
required: false
38
38
default: 'release-tag'
39
39
release_types:
40
-
description: 'A comma separated string of release types (major, minor, patch) to use when updating the actions. If not specified, all releases will be used. options: "all" (default), "major", "minor", "patch"'
40
+
description: 'A comma separated string of release types (major, minor, patch) to use when updating the actions. By default, all release types are used to update the actions. Only Applicable for "release-tag", "release-commit-sha"'
0 commit comments