-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update {{ cookiecutter.package_name }}/.github/workflows/sub_package_…
…update.yml Co-authored-by: Stuart Mumford <[email protected]>
- Loading branch information
1 parent
84614fa
commit b554b7a
Showing
8 changed files
with
36 additions
and
33 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
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
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
name: Update SunPy Sub Packages | ||
""" | ||
This template is taken from the cruft example code, for further information please see: | ||
https://cruft.github.io/cruft/#automating-updates-with-github-actions | ||
""" | ||
name: Automatic Update from package template | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
@@ -17,13 +21,13 @@ jobs: | |
- add-paths: . | ||
body: Use this to merge the changes to the repo | ||
branch: cruft/update | ||
commit-message: "SunPy package template update" | ||
title: New Updates to SunPy Template | ||
commit-message: "Automate package template update" | ||
title: Incoming updates from package template | ||
- add-paths: .cruft.json | ||
body: Use this to reject changes in the repo | ||
branch: cruft/reject | ||
commit-message: "Chore: reject this cruft update" | ||
title: Reject new SunPy template updates | ||
title: Reject new updates from package template | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -52,10 +56,9 @@ jobs: | |
- name: Run update if available | ||
if: steps.check.outputs.has_changes == '1' | ||
# this needs to be sunpy details I think? | ||
run: | | ||
git config --global user.email "" | ||
git config --global user.name "SunPy Org" | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Gromit" | ||
cruft update --skip-apply-ask --refresh-private-variables | ||
git restore --staged | ||
|
@@ -73,5 +76,5 @@ jobs: | |
title: ${{ matrix.title }} | ||
body: | | ||
This is an autogenerated PR. ${{ matrix.body }} | ||
[Cruft](https://cruft.github.io/cruft/) has detected updates from the SunPy Package Template | ||
[Cruft](https://cruft.github.io/cruft/) has detected updates from the Package Template | ||
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
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