mirror of
https://github.com/fjogeleit/http-request-action.git
synced 2024-12-29 05:14:52 -05:00
6769207b0b
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
35 lines
826 B
YAML
35 lines
826 B
YAML
name: Build Action
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
ref:
|
|
description: The branch
|
|
type: string
|
|
default: main
|
|
required: true
|
|
jobs:
|
|
build:
|
|
permissions:
|
|
contents: write
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ inputs.ref }}
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '16'
|
|
- name: Install dependencies
|
|
run: |
|
|
npm ci
|
|
- name: Build Action
|
|
run: |
|
|
npm run build
|
|
- name: Update dist
|
|
run: |
|
|
git config user.name 'github-actions[bot]'
|
|
git config user.email 'github-actions[bot]@users.noreply.github.com'
|
|
git add ./dist &&
|
|
git commit -m "Update dist"
|
|
git push origin HEAD:${{ inputs.ref }}
|