-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into tox/coverage_github_actions
- Loading branch information
Showing
4 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Sync OpenAstronomy Workflows from upstream | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# Run every Saturday at 0900 UTC | ||
- cron: '0 9 * * 6' | ||
|
||
jobs: | ||
sync-workflows: | ||
if: github.repository != 'OpenAstronomy/github-actions-workflows' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout target repository | ||
uses: actions/checkout@v4 | ||
with: | ||
# Checkout the repository where the workflow is running | ||
ref: main | ||
fetch-depth: 0 | ||
|
||
- name: Set up git | ||
run: | | ||
git config --global user.name "${{ secrets.GITHUB_ACTOR }}" | ||
git config --global user.email "${{ secrets.GITHUB_ACTOR }}@users.noreply.github.com" | ||
- name: Pull from OpenAstronomy/github-actions-workflows main branch | ||
run: | | ||
git remote add upstream https://github.com/OpenAstronomy/github-actions-workflows.git | ||
git fetch upstream main | ||
git merge upstream/main | ||
- name: Push changes to the target repository | ||
run: | | ||
git push origin main |
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
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