Skip to content

Commit

Permalink
ci: stop doing updates on feature branches
Browse files Browse the repository at this point in the history
  • Loading branch information
r-k-b committed Feb 2, 2024
1 parent 341f6ff commit 7d07d7d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
name: Bump Browser Versions
runs-on:
ubuntu-22.04
env:
# https://stackoverflow.com/a/71158878/2014893
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
steps:
- name: git checkout
uses: actions/checkout@v4
Expand All @@ -30,13 +33,17 @@ jobs:
run: |
set -e
git fetch
git checkout main
git config --global user.name 'BumpBot'
git config --global user.email '[email protected]'
- name: update google-chrome
run: |
nix develop --command \
./google-chrome/update.py --commit
echo branch_name is "$BRANCH_NAME"
if [[ "$BRANCH_NAME" == "main" ]]; then
nix develop --command \
./google-chrome/update.py --commit
else
echo "not on branch 'main'; skipping update.py."
fi
- name: check build outputs
env:
NIXPKGS_ALLOW_UNFREE: "1"
Expand Down

0 comments on commit 7d07d7d

Please sign in to comment.