Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/update_remote.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Pull upstream automatically from https://gem5.googlesource.com/public/gem5

on:
# Possibility to run it manually
workflow_dispatch:
# Automated
schedule:
# Run this every day at 02:22 UTC
- cron: '22 2 1 * *'


jobs:
build:
runs-on: ubuntu-latest

steps:
# Checkout the current repo
- uses: actions/checkout@v3
# Fetch the history and unshallow the repo so that it can be used
- name: Fetch all history for all tags and branches
run: git fetch --prune --unshallow
# Pull the detached remote and do the magic
- name: Pull Detached Remote
uses: litetex/pull-detached-remote@<VERSIONTAG>
with:
upstreamrepo: https://gem5.googlesource.com/public/gem5
upstreambranch: master
env:
GITHUB_PAT: ${{ secrets.GH_PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}