Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Mar 1, 2024
1 parent 91c83b5 commit bbc662c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/oa_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,23 @@ jobs:

- name: Add OpenAstronomy/packaging-guide remote
run: |
git remote add openastronomy git@github.com:OpenAstronomy/packaging-guide.git
git remote add openastronomy https://github.com/OpenAstronomy/packaging-guide.git
git remote update
- name: Check if there are new commits in OpenAstronomy/packaging-guide
continue-on-error: false
id: check
run: |
CHANGES=0
if [ "$(git rev-list main..openastronomy/main --count)" -gt 0 ]; then
if [ "$(git rev-list oa_auto_update..openastronomy/main --count)" -gt 0 ]; then
CHANGES=1
fi
echo "has_changes=$CHANGES" >> "$GITHUB_OUTPUT"
- name: Merge in OpenAstronomy/packaging-guide
if: steps.check.outputs.has_changes == '1'
id: merge
continue-on-error: false
run: |
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git config --global user.name "${{ github.actor }}"
Expand Down

0 comments on commit bbc662c

Please sign in to comment.