Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Action: fetch upstream from desihighStudent and force merge for all but science notebook set. #99

Open
michaelJwilson opened this issue Feb 17, 2022 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@michaelJwilson
Copy link
Contributor

michaelJwilson commented Feb 17, 2022

GitHub Action: fetch upstream for @desihighStudent and force merge for all but science notebook set.

@michaelJwilson michaelJwilson added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Feb 17, 2022
@michaelJwilson
Copy link
Contributor Author

# This is a basic workflow to help you get started with Actions
name: Update fork

env:
  IS_DESIHIGH: 'True'

# Controls when the action will run. 
on:
  schedule:
    # Every Monday at 1PM UTC (9AM EST)
    - cron: "30 18 * * 4" 

  workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  # This workflow contains a single job called "build"
  build:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@v2
      - name: Set upstream
        run: git remote add upstream https://github.com/michaelJwilson/desihigh.git
      - name: Set email
        run: git config --local user.email "action@github.com"
      - name: Set username
        run: git config --local user.name "GitHub Action"
      - name: Fetch upstream
        run: git fetch upstream
      - name: Merge upstream
        run: git merge upstream/main --allow-unrelated-histories
      - name: Push changes 
        run: git push 

@michaelJwilson
Copy link
Contributor Author

Advice, comments & testing (ahead of tomorrow) appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant