Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pypa/gh-action-pypi-publish
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.6.2
Choose a base ref
...
head repository: pypa/gh-action-pypi-publish
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.6.3
Choose a head ref
  • 4 commits
  • 2 files changed
  • 1 contributor

Commits on Dec 6, 2022

  1. 🐛Ensure the default $PATH value is pre-loaded

    This patch imports the system-global profile script to
    populate the `$PATH` variable with the typically available binary
    paths.
    
    Ref:
    #112 (comment)
    webknjaz committed Dec 6, 2022
    Copy the full SHA
    57e7d53 View commit details
  2. Copy the full SHA
    c879b84 View commit details
  3. Copy the full SHA
    e56e821 View commit details
  4. Copy the full SHA
    e71a4a4 View commit details
Showing with 11 additions and 1 deletion.
  1. +2 −0 .github/workflows/self-smoke-test-action.yml
  2. +9 −1 twine-upload.sh
2 changes: 2 additions & 0 deletions .github/workflows/self-smoke-test-action.yml
Original file line number Diff line number Diff line change
@@ -84,6 +84,8 @@ jobs:
}}/public/
- name: ✅ Smoke-test the locally checked out action
uses: ./test
env:
PATH: utter-nonsense
with:
user: ${{ env.devpi-username }}
password: ${{ env.devpi-password }}
10 changes: 9 additions & 1 deletion twine-upload.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
#! /usr/bin/env bash
#! /bin/bash

if [[ -n "${DEBUG}" ]]
then
set -x
fi

set -Eeuo pipefail


# NOTE: These variables are needed to combat GitHub passing broken env vars
# NOTE: from the runner VM host runtime.
# Ref: https://github.com/pypa/gh-action-pypi-publish/issues/112
export PATH="/usr/bin:${PATH}" # To find `id`
. /etc/profile # Makes python and other executables findable
export PATH="$(python -m site --user-base)/bin:${PATH}"
export PYTHONPATH="$(python -m site --user-site):${PYTHONPATH}"