Skip to content

Adding workflow with rollback #1

Adding workflow with rollback

Adding workflow with rollback #1

Workflow file for this run

name: Main
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
inputs:
workflow_title:
description: 'Title for workflow'
required: false
default: 'Main Workflow'
run-name: ${{ inputs.workflow_title }}
jobs:
lint:
uses: ./.github/workflows/_lint.yml
secrets: inherit
unittest:

Check failure on line 24 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Main

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 24, Col: 5): Error calling workflow 'atxpaul/react-app-pipeline-example/.github/workflows/_unittest.yml@3f2cfac9fce27f2389c167c607cd4292de9d82aa'. The nested job 'unittest' is requesting 'issues: write, pull-requests: write', but is only allowed 'issues: none, pull-requests: none'.
uses: ./.github/workflows/_unittest.yml
secrets: inherit
needs: [lint]
deploy:
uses: ./.github/workflows/_deploy.yml
secrets: inherit
needs: [unittest]
e2e:
uses: ./.github/workflows/_e2e.yml
secrets: inherit
needs: [deploy]
with:
base-url: ${{ needs.deploy.outputs.app_url }}
tag_stable:
uses: './.github/workflows/_tag_stable.yml'
needs: [e2e]
if: success() && (github.event_name != 'pull_request' || github.event_name != 'workflow_dispatch')
rollback:
uses: './.github/workflows/_rollback.yml'
needs: [e2e]
if: failure()