Add VCS simulation flow #2964
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2022 ETH Zurich and University of Bologna. | |
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | |
# SPDX-License-Identifier: Apache-2.0 | |
# Author: Paul Scheffler <[email protected]> | |
name: gitlab-ci | |
on: [ push, pull_request, workflow_dispatch ] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Mirror and check | |
uses: pulp-platform/pulp-actions/[email protected] | |
# Skip on forks or pull requests from forks due to missing secrets. | |
if: > | |
github.repository == 'pulp-platform/cheshire' && | |
(github.event_name != 'pull_request' || | |
github.event.pull_request.head.repo.full_name == github.repository) | |
with: | |
domain: iis-git.ee.ethz.ch | |
repo: github-mirror/cheshire | |
token: ${{ secrets.GITLAB_TOKEN }} | |
poll-count: 10800 # (10800/60=180min=3hours) |