Skip to content

Conversation

@shortcuts
Copy link
Member

@shortcuts shortcuts commented Mar 9, 2022

🧭 What and Why

🎟 JIRA Ticket: -

Changes included:

base_ref does not exists on main, which makes the CI fails to run the git diff and run all tasks even when no changes are related.

see -> setup -> setup

🧪 Test

CI :D

@shortcuts shortcuts requested review from damcou and eunjae-lee March 9, 2022 18:07
@shortcuts shortcuts self-assigned this Mar 9, 2022
@netlify
Copy link

netlify bot commented Mar 9, 2022

✔️ Deploy Preview for api-clients-automation canceled.

🔨 Explore the source changes: 2afadd3

🔍 Inspect the deploy log: https://app.netlify.com/sites/api-clients-automation/deploys/622f036057b55a0008c6909d

@shortcuts shortcuts changed the title ci: fix bad revision on main branch chore: fix bad revision on main branch Mar 9, 2022
Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good !

id: spec-matrix
shell: bash
run: |
base_changed=${{ github.ref == 'refs/heads/main' || steps.diff.outputs.GITHUB_ACTIONS_CHANGED > 0 || steps.diff.outputs.SCRIPTS_CHANGED > 0 || steps.diff.outputs.COMMON_SPECS_CHANGED > 0 }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.ref == 'refs/heads/main'
This code was to always run everything on main, do we don't want that anymore ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mostly wanted to fix the error thrown to make it clearer, but we can indeed either:

  • properly run everything on main
  • only run relevant checks

IMO every steps should run on release trigger, but we don't need to run unrelated jobs on merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants