Skip to content

Commit

Permalink
Merge pull request #14 from joutvhu/develop
Browse files Browse the repository at this point in the history
Use Node 20
  • Loading branch information
joutvhu authored Dec 26, 2023
2 parents e9e39e1 + 0a9fe75 commit db9b0aa
Show file tree
Hide file tree
Showing 7 changed files with 30,855 additions and 893 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Rebuild Changes

on:
push:
branches:
- 'main'

jobs:
build:
runs-on: ubuntu-latest
permissions:
issues: write
contents: write
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20

- name: Install packages
run: npm ci

- name: Rebuild
run: npm run release

- name: Check change status
id: check_status
run: |
git status -s
echo "::set-output name=changed::$(git status -s | grep -q 'action/index.js' && echo 'true' || echo 'false')"
- name: Push new action/index.js
if: ${{ steps.check_status.outputs.changed == 'true' }}
run: |
git config --global user.name "GitHub"
git config --global user.email "[email protected]"
git commit -m "Rebuild action/index.js" --author="github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
git push origin
10 changes: 7 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 12
node-version: 20

- name: Install packages
run: npm install

- name: Create test file
run: echo Hello, world! > hello.txt

Expand Down Expand Up @@ -51,5 +54,6 @@ jobs:
with:
name: test-m3-artifact
path: hello.txt

- name: Detele all artifact
uses: ./
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ jspm_packages/
.pnp.js

# Node lock file
package-lock.json
yarn.lock
pnpm-lock.yaml

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ inputs:
description: The name of the artifact to delete, multiple names can be supplied on new lines.
required: false
runs:
using: node16
using: node20
main: action/index.js
branding:
icon: trash-2
Expand Down
Loading

0 comments on commit db9b0aa

Please sign in to comment.