Skip to content

Commit

Permalink
Minor fix at publish.yml (#381)
Browse files Browse the repository at this point in the history
* upgrade checkout and setup-python version

* check before commit at HEAD and latest commit to HEAD

---------

Co-authored-by: jeffrey <[email protected]>
  • Loading branch information
vkehfdl1 and jeffrey authored Apr 27, 2024
1 parent 96ef3c7 commit 17a8774
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# retrieve your distributions here
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: '3.10'

- name: Install dependencies
run: |
Expand All @@ -29,7 +29,7 @@ jobs:
- name: Check for VERSION file change
id: version_changed
run: |
if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep 'VERSION'; then
if git diff --name-only HEAD^ HEAD | grep 'VERSION'; then
echo "::set-output name=changed::true"
fi
- name: Build
Expand Down

0 comments on commit 17a8774

Please sign in to comment.