Skip to content

Commit

Permalink
Upstream checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Aadniz authored Oct 31, 2024
1 parent 2a2d5ed commit 946cdb9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/update-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@ jobs:
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- id: checkUpstream
name: Check if remote upstream is already added
run: git remote -v | grep -q upstresam || echo "upstream_exists=false" >> $GITHUB_OUTPUT

- id: addUpstream
name: Add upstream remote
if: steps.checkUpstream.outputs.upstream_exists == 'false'
run: git remote add upstream https://github.com/searxng/searxng.git

- id: fetchUpstream
Expand Down

0 comments on commit 946cdb9

Please sign in to comment.