2022-05-31 07:32:59 -04:00
|
|
|
# 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
|
|
|
|
|
2022-04-06 17:26:02 -04:00
|
|
|
name: Automerge
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
|
|
|
|
Pipeline:
|
|
|
|
if: ${{ !(github.event_name != 'pull_request' && github.actor == 'dependabot[bot]') }}
|
2022-02-27 09:27:49 -05:00
|
|
|
uses: ./.github/workflows/Pipeline.yml
|
2022-04-06 17:26:02 -04:00
|
|
|
|
|
|
|
|
|
|
|
Automerge:
|
|
|
|
needs: Pipeline
|
2022-04-21 07:10:34 -04:00
|
|
|
if: github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' && github.repository == 'chipsalliance/f4pga'
|
2022-04-06 17:26:02 -04:00
|
|
|
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
|