Sync fork with upstream #36
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
name: Sync fork with upstream | |
on: | |
schedule: | |
- cron: "0 */6 * * *" | |
workflow_dispatch: | |
jobs: | |
sync-fork: | |
runs-on: ubuntu-latest | |
strategy: | |
# Using matrix to trigger sync in multiple branches. | |
matrix: | |
branch: | |
- master | |
- staging | |
permissions: | |
contents: write | |
steps: | |
- uses: thiagokokada/[email protected] | |
id: merge-upstream | |
with: | |
branch: ${{ matrix.branch }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- run: | | |
# The job has the following outputs that matches the API response. | |
# They may be useful for further automation. | |
echo "${{ steps.merge-upstream.outputs.message }}" | |
echo "${{ steps.merge-upstream.outputs.merge-type }}" | |
echo "${{ steps.merge-upstream.outputs.base-branch }}" |