Skip to content

Commit

Permalink
Update SHA in lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Jul 25, 2024
1 parent 2b758fe commit bf1b5ec
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@ on:
branches-ignore:
- 'release/*'
pull_request:
env:
# Set variable to 'main' if your change will not affect Contrib.
# Otherwise, set variable to the commit of your branch on
# opentelemetry-python-contrib which is compatible with these Core repo
# changes.
CONTRIB_REPO_SHA: c5a4de79586e5cbc4f6ff616e3fb136f98c8a7a1

# This is needed because we do not clone the core repo in contrib builds anymore.
# When running contrib builds as part of core builds, we use actions/checkout@v4 which
# does not set an environment variable (simply just runs tox), which is different when
# contrib builds are run directly from contrib (since test.yml is executed, which sets CORE_REPO_SHA)
# The solution is to include CORE_REPO_SHA as part of THIS environment so it can be accessed
# from within the contrib build.
CORE_REPO_SHA: ${{ github.sha }}

# See #3879 and https://pip.pypa.io/en/stable/cli/pip/#exists-action-option
PIP_EXISTS_ACTION: w

jobs:
lint-3_12:
Expand Down

0 comments on commit bf1b5ec

Please sign in to comment.