Pipeline - Auto Sync #68125
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
# SPDX-FileCopyrightText: 2022 WebReady Projects <https://github.com/wr-projects/> | |
# | |
# SPDX-License-Identifier: MIT | |
--- | |
name: Pipeline - Auto Sync | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '*/5 * * * *' | |
jobs: | |
build: | |
name: Auto Sync | |
runs-on: ubuntu-latest | |
if: ${{ !startsWith(github.head_ref, 'dependabot/') }} | |
steps: | |
# More info: https://github.com/peter-murray/workflow-application-token-action. | |
- name: Get token | |
id: get_token | |
uses: peter-murray/workflow-application-token-action@8e4e6fbf6fcc8a272781d97597969d21b3812974 | |
with: | |
application_id: ${{ secrets.ID_AUTOSYNCHROBOT }} | |
application_private_key: ${{ secrets.PEM_AUTOSYNCHROBOT }} | |
# More info: https://github.com/actions/checkout. | |
- name: Checkout & Authentication | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
with: | |
repository: wr-projects/github-template | |
token: ${{ steps.get_token.outputs.token }} | |
persist-credentials: false | |
# More info: https://github.com/rovast/sync-upstream-repo/. | |
- name: GitHub Sync to Upstream Repository | |
uses: BetaHuhn/repo-file-sync-action@8b92be3375cf1d1b0cd579af488a9255572e4619 | |
with: | |
GH_INSTALLATION_TOKEN: ${{ steps.get_token.outputs.token }} | |
CONFIG_PATH: '.github/config/workflows/sync.yml' | |
GIT_EMAIL: ${{ secrets.AUTOSYNCHRO_CI_EMAIL }} | |
GIT_USERNAME: ${{ secrets.AUTOSYNCHRO_CI_NAME }} | |
SKIP_PR: true |