Skip to content

Commit a2c37e6

Browse files
authored
ITDEV-538 - Dependency updates (#13)
* ITDEV-538 - Dependency updates * fix * fixes
1 parent 3997178 commit a2c37e6

File tree

12 files changed

+818
-1732
lines changed

12 files changed

+818
-1732
lines changed

.eslintrc.json

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

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

1616
- name: test
1717
run: |

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
steps:
1414
- name: checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

1717
- name: test
1818
run: |

.github/workflows/review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

1616
- name: test
1717
run: |

.husky/pre-commit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# .husky/pre-commit
2+
3+
ncc build src/index.js --minify && git add dist/index.js

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ Branch/Commit/Tag from source repository where to get updated GitHub Actions con
2929
### `updated`
3030

3131
Is set to `true` if one configuration file is changed. Usage:
32-
```
33-
- uses: avides/actions-action-configuration-autoupdate@v1.3.0
32+
33+
``` yaml
34+
- uses: avides/actions-action-configuration-autoupdate@v2.0.0
3435
id: actions_action_configuration_autoupdate
3536
with:
3637
token: ${{ secrets.PAT }}
@@ -43,31 +44,33 @@ Is set to `true` if one configuration file is changed. Usage:
4344
```
4445
4546
## Example usage
46-
```
47+
48+
``` yaml
4749
- name: action-configuration-autoupdate
48-
uses: avides/actions-action-configuration-autoupdate@v1.3.0
50+
uses: avides/actions-action-configuration-autoupdate@v2.0.0
4951
with:
5052
token: ${{ secrets.PAT }}
5153
actions-configuration-files: path/to/files/workflow1.yml,path/to/files/workflow2.yml
5254
source-repository: your/workflow-configuration-repository
5355
```
5456
5557
## Example usage with auto-commit
56-
```
58+
59+
``` yaml
5760
- name: checkout
5861
uses: actions/checkout@v3
5962
with:
6063
ref: ${{ github.head_ref }}
6164
token: ${{ secrets.PAT }}
6265

6366
- name: action-configuration-autoupdate
64-
uses: avides/actions-action-configuration-autoupdate@v1.3.0
67+
uses: avides/actions-action-configuration-autoupdate@v2.0.0
6568
with:
6669
token: ${{ secrets.PAT }}
6770
actions-configuration-files: path/to/files/workflow1.yml,path/to/files/workflow2.yml
6871
source-repository: your/workflow-configuration-repository
6972

70-
- uses: stefanzweifel/git-auto-commit-action@v4
73+
- uses: stefanzweifel/git-auto-commit-action@v5
7174
with:
7275
file_pattern: .github/workflows/*.yml
7376
commit_message: Update GitHub Action configuration

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ outputs:
2121
updated:
2222
description: 'Is set to `true` if one configuration file is changed'
2323
runs:
24-
using: 'node16'
24+
using: 'node20'
2525
main: 'dist/index.js'

dist/index.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.mjs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import globals from "globals";
2+
import path from "node:path";
3+
import { fileURLToPath } from "node:url";
4+
import js from "@eslint/js";
5+
import { FlatCompat } from "@eslint/eslintrc";
6+
7+
const __filename = fileURLToPath(import.meta.url);
8+
const __dirname = path.dirname(__filename);
9+
const compat = new FlatCompat({
10+
baseDirectory: __dirname,
11+
recommendedConfig: js.configs.recommended,
12+
allConfig: js.configs.all
13+
});
14+
15+
export default [...compat.extends("eslint:recommended"), {
16+
languageOptions: {
17+
globals: {
18+
...globals.commonjs,
19+
...globals.node,
20+
Atomics: "readonly",
21+
SharedArrayBuffer: "readonly",
22+
},
23+
24+
ecmaVersion: 11,
25+
sourceType: "module",
26+
},
27+
28+
rules: {},
29+
}];

0 commit comments

Comments
 (0)