File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 steps :
1919 - name : Checkout code
2020 uses : actions/checkout@v4
21+ with :
22+ # Ensures we check out the actual head branch on PRs
23+ ref : ${{ github.head_ref || github.ref_name }}
24+
25+ - name : Derive branch name
26+ id : branch
27+ shell : bash
28+ run : |
29+ BN="${GITHUB_HEAD_REF:-$GITHUB_REF_NAME}"
30+ if [ -z "$BN" ]; then BN="$(git branch --show-current || true)"; fi
31+ echo "BRANCH_NAME=$BN" | tee -a "$GITHUB_ENV"
32+ echo "name=$BN" >> "$GITHUB_OUTPUT"
2133
2234 - name : Set up Python
2335 uses : actions/setup-python@v5
3244 python -m pip install tox pre-commit
3345 # pre-commit run --all-files
3446 # npx mint-mcp add docs.prefect.io
35- # pre-commit install # don't install, since this has been a source of issues
47+ # pre-commit install
3648
3749 - name : Install branch-specific dependencies
38- if : ${{ github.ref_name == 'copilot/fix-382' }}
50+ if : ${{ env.BRANCH_NAME == 'copilot/fix-382' }}
3951 run : |
4052 python -m pip install "ax-platform<1" prefect prefect-slack
You can’t perform that action at this time.
0 commit comments