forked from DigiLive/mushroom-strategy
Reformat
This commit is contained in:
6
.github/workflows/validate.yml
vendored
6
.github/workflows/validate.yml
vendored
@@ -1,8 +1,8 @@
|
|||||||
name: HACS validation
|
name: HACS validation
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
hacs:
|
hacs:
|
||||||
name: HACS Action
|
name: HACS Action
|
||||||
|
58
.github/workflows/webpack.yml
vendored
58
.github/workflows/webpack.yml
vendored
@@ -18,40 +18,40 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [18.x]
|
node-version: [ 18.x ]
|
||||||
|
|
||||||
# Checkout Repository
|
# Checkout Repository
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}
|
token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}
|
||||||
|
|
||||||
# Build steps
|
# Build steps
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
- name: Node Install
|
- name: Node Install
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Build Distribution
|
- name: Build Distribution
|
||||||
run: |
|
run: |
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
- name: Check for file changes
|
- name: Check for file changes
|
||||||
id: checkDiff
|
id: checkDiff
|
||||||
run: |
|
run: |
|
||||||
git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT
|
git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# Commit and push all changed files.
|
# Commit and push all changed files.
|
||||||
# Must only affect files that are listed in "paths-ignore".
|
# Must only affect files that are listed in "paths-ignore".
|
||||||
- name: GIT Commit Distribution Build
|
- name: GIT Commit Distribution Build
|
||||||
# Only run on main branch push (e.g., pull request merge).
|
# Only run on a main branch push (e.g., pull request merge).
|
||||||
if: github.event_name == 'push' && steps.checkDiff.outputs.changed == 'true'
|
if: github.event_name == 'push' && steps.checkDiff.outputs.changed == 'true'
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
|
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
|
||||||
git config --global user.email "ci_activity@noreply.github.com"
|
git config --global user.email "ci_activity@noreply.github.com"
|
||||||
git add dist
|
git add dist
|
||||||
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
|
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
|
||||||
git push
|
git push
|
||||||
|
Reference in New Issue
Block a user