Skip to content

Commit fb38c1f

Browse files
chore: polish gh workflow
1 parent 4c3fd27 commit fb38c1f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/collect-deps.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,24 @@ jobs:
2727
registry-url: https://registry.npmjs.org
2828
- name: Prepare Ubuntu
2929
run: sudo apt-get update && sudo apt-get install -y apt-file && sudo apt-file update
30-
- run: npm ci
30+
- name: Install npm dependencies
31+
run: npm ci
3132
- name: Config git
3233
run: git config --global user.name "y-infra" && git config --global user.email "y-infra@yandex.ru"
33-
- name: Fetch branches
34-
run: git fetch --all
3534
- name: Checkout to branch
3635
run: |
3736
if git ls-remote --heads origin "$BRANCH_NAME" | grep -q "$BRANCH_NAME"; then
37+
git fetch origin ${{ env.BRANCH_NAME }}
3838
git checkout ${{ env.BRANCH_NAME }}
3939
git pull
4040
else
4141
git checkout -b ${{ env.BRANCH_NAME }}
4242
fi
43-
- run: npm run resolve-ubuntu-dependencies
44-
- run: git add src
43+
- name: Resolve Ubuntu dependencies
44+
run: npm run resolve-ubuntu-dependencies
4545
- name: Commit changes
4646
run: |
47+
git add src
4748
git status
4849
if git diff-index --quiet HEAD src; then
4950
echo 'No changes'

0 commit comments

Comments
 (0)