Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add step to check if commit is neccessary #125

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .github/workflows/Amend-Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,27 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
scope: '@spotify-confidence'
- name: Enable corepack
shell: bash
run: corepack enable
- name: Fix constraints
shell: bash
run: yarn constraints --fix
- name: Install dependencies
shell: bash
run: corepack enable && yarn install
run: yarn install
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
- name: Check for changes in yarn.lock
id: git-check
run: |
git status
git add yarn.lock
git add packages/
git diff --staged --exit-code || echo "::set-output name=changed::true"
- name: Commit and push changes
if: steps.git-check.outputs.changed == 'true'
run: |
git status && \
git --no-pager diff && \
git config user.name "confidence-bot" && \
git config user.email "confidence+bot@spotify.com" && \
git add yarn.lock && \
Expand Down
Loading