Update package generation workflow. (#10793)

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2024-11-26 02:24:30 -05:00
committed by GitHub
parent e5232edd3b
commit 26ac7353c2

View File

@@ -53,12 +53,13 @@ jobs:
git config user.email "${{ github.actor }}@users.noreply.github.com"
git add -A
git commit -m "Add unbuilt updated pip packages to ${UPDATE_BRANCH_NAME}"
echo "PIP_UPDATED=true >> $GITHUB_OUTPUT
else
echo "Python pip packages were not updated."
exit 1
echo "PIP_UPDATED=false >> $GITHUB_OUTPUT
fi
- name: Push pip package changes
if: ${{ steps.pip-update-checks.outcome == 'success' }}
if: ${{ steps.pip-update-checks.outputs.PIP_UPDATED == 'true' }}
uses: ad-m/github-push-action@master
with:
branch: ${{ steps.set-variables.outputs.UPDATE_BRANCH_NAME }}
@@ -76,17 +77,18 @@ jobs:
git config user.email "${{ github.actor }}@users.noreply.github.com"
git add -A
git commit -m "Add unbuilt updated ruby gem packages to ${UPDATE_BRANCH_NAME}"
echo "GEM_UPDATED=true >> $GITHUB_OUTPUT
else
echo "Ruby gem packages were not updated."
exit 1
echo "GEM_UPDATED=false >> $GITHUB_OUTPUT
fi
- name: Push ruby gem package changes
if: ${{ steps.gem-update-checks.outcome == 'success' }}
if: ${{ steps.gem-update-checks.outputs.GEM_UPDATED == 'true' }}
uses: ad-m/github-push-action@master
with:
branch: ${{ steps.set-variables.outputs.UPDATE_BRANCH_NAME }}
- name: Cancel if no updates
if: ${{ steps.pip-update-checks.outcome == 'failure' }} && ${{ steps.gem-update-checks.outcome == 'failure' }}
if: ${{ steps.pip-update-checks.outputs.PIP_UPDATED == 'false' }} && ${{ steps.gem-update-checks.outputs.GEM_UPDATED == 'false' }}
run: |
# https://stackoverflow.com/a/75809743
gh run cancel ${{ github.run_id }}
@@ -145,8 +147,7 @@ jobs:
run: |
git pull && git checkout ${CREW_BRANCH}
docker pull --platform ${PLATFORM} satmandu/crewbuild:${CONTAINER}
id
ls -aFl
sudo apt install -y acl
sudo setfacl -R -m u:1000:rwx .
getfacl .
docker run \