Skip to content

Commit 627130d

Browse files
committed
test validate workflow
1 parent cf3b14e commit 627130d

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

.github/workflows/validate.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
jobs:
7+
use_s3cmd:
8+
runs-on: ubuntu-latest
9+
10+
name: Validate Project
11+
steps:
12+
- name: Build dist
13+
- run: |
14+
mv dist/index.js old
15+
npm run build
16+
if cmp --silent -- old dist/index.js; then
17+
exit 0
18+
else
19+
exit 1
20+
fi
21+

hooks/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/sh
22

3+
set -e
34
echo "building action:"
45
exec 2>&1
56
npm run build

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const conf = makeConf(providers[core.getInput('provider')]({
1313
secret_key: core.getInput("secret_key"),
1414
}))
1515

16-
ddf writer = createWriteStream(path)
16+
const writer = createWriteStream(path)
1717

1818
for (const line of conf) {
1919
writer.write(line+'\r\n')

0 commit comments

Comments
 (0)