Skip to content

update default archiver mode to release #9

update default archiver mode to release

update default archiver mode to release #9

Workflow file for this run

name: Node CI Workflow
#
# The parameters are defaulted at the org level but can be overridden on the repository.
# See the github-automation repo for more documentation
#
on:
push:
branches:
- dev
- main
pull_request:
branches:
- dev
- main
workflow_dispatch:
inputs:
workflowBranch:
description: 'Branch of the reusable workflow. Defaults to main, select dev for testing only.'
required: true
default: 'main'
type: choice
options:
- dev
- main
permissions:
issues: write
pull-requests: write
jobs:
echo-inputs:
name: Repo Workflow Debugging
runs-on: ubuntu-latest
steps:
- name: Check Repo Vars
run: |
echo "*** Start - Check inputs in repo workflow ***"
echo "Node Version: ${{ vars.NODE_VERSION }}"
echo "Lint Required: ${{ vars.IS_LINT_REQUIRED }}"
echo "Format Check Required: ${{ vars.IS_FORMAT_CHECK_REQUIRED }}"
echo "Apply Patches Required: ${{ vars.IS_APPLY_PATCHES_REQUIRED }}"
echo "Unit Tests Required: ${{ vars.IS_UNIT_TESTS_REQUIRED }}"
echo "*** End - Check inputs in repo workflow ***"
ci-dev:

Check failure on line 44 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Node CI Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 44, Col: 3): Error calling workflow 'shardeum/github-automation/.github/workflows/reusable-node-ci.yml@dev'. The nested job 'pr_agent_job' is requesting 'contents: write', but is only allowed 'contents: none'. .github/workflows/ci.yml (Line: 44, Col: 3): Error calling workflow 'shardeum/github-automation/.github/workflows/reusable-node-ci.yml@dev'. The nested job 'merge-checks' is requesting 'contents: read', but is only allowed 'contents: none'.
if: ${{ github.event.inputs.workflowBranch == 'dev' }}
uses: shardeum/github-automation/.github/workflows/reusable-node-ci.yml@dev
with:
node-version: ${{ vars.NODE_VERSION }}
lint-required: ${{ vars.IS_LINT_REQUIRED == 'true' }}
format-check-required: ${{ vars.IS_FORMAT_CHECK_REQUIRED == 'true' }}
apply-patches-required: ${{ vars.IS_APPLY_PATCHES_REQUIRED == 'true' }}
unit-tests-required: ${{ vars.IS_UNIT_TESTS_REQUIRED == 'true' }}
secrets: inherit
ci-main:
if: ${{ github.event.inputs.workflowBranch == 'main' || !github.event.inputs.workflowBranch }}
uses: shardeum/github-automation/.github/workflows/reusable-node-ci.yml@main
with:
node-version: ${{ vars.NODE_VERSION }}
lint-required: ${{ vars.IS_LINT_REQUIRED == 'true' }}
format-check-required: ${{ vars.IS_FORMAT_CHECK_REQUIRED == 'true' }}
apply-patches-required: ${{ vars.IS_APPLY_PATCHES_REQUIRED == 'true' }}
unit-tests-required: ${{ vars.IS_UNIT_TESTS_REQUIRED == 'true' }}
secrets: inherit