Skip to content

CI: use gh-pages-action #1735

CI: use gh-pages-action

CI: use gh-pages-action #1735

Workflow file for this run

# Copyright (C) 2020-2022 F4PGA Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
name: Automerge
on:
pull_request:
push:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
Pipeline:

Check failure on line 28 in .github/workflows/Automerge.yml

View workflow run for this annotation

GitHub Actions / Automerge

Invalid workflow file

The workflow is not valid. .github/workflows/Automerge.yml (Line: 28, Col: 3): Error calling workflow 'chipsalliance/f4pga/.github/workflows/Pipeline.yml@e1874db40b9fb402d74eec395582b481f9400be4'. The nested job 'Docs' is requesting 'contents: write', but is only allowed 'contents: read'.
if: ${{ !(github.event_name != 'pull_request' && github.actor == 'dependabot[bot]') }}
uses: ./.github/workflows/Pipeline.yml
Action:
if: ${{ !(github.event_name != 'pull_request' && github.actor == 'dependabot[bot]') }}
uses: ./.github/workflows/Action.yml
Automerge:
needs: Pipeline
if: github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' && github.repository == 'chipsalliance/f4pga'
runs-on: ubuntu-latest
name: Automerge dependabot PRs
permissions:
contents: write
steps:
- name: Auto-merge Dependabot PR
run: GITHUB_TOKEN='${{ github.token }}' gh pr merge '${{ github.event.pull_request.html_url }}' --squash