Skip to content

Commit

Permalink
Remove gha_functions.sh
Browse files Browse the repository at this point in the history
Skip-PR-comments: true
Run-GHA: true

Required-githooks: true

Signed-off-by: Brian J. Murrell <[email protected]>
  • Loading branch information
brianjmurrell committed Jul 3, 2024
1 parent 05b3504 commit d9c3774
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/rpm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,13 @@ jobs:
- name: Import and Dequote Commit Message
id: dequoted_commit_message
run: |
. ci/gha_functions.sh
exec >> $GITHUB_OUTPUT
# it's tempting to use the previous step's output as such:
# echo '$ {{ steps.commit_message.outputs.text }}' | escape_single_quotes;
# below, instead of using git again, but if that commit message has a ' in it,
# (which we are trying to escape here) it will cause a sh parsing error here
echo 'text<<EOF'
git show -s --format=%B | escape_single_quotes
git show -s --format=%B | sed -e "s/'/'\"'\"'/g"
echo 'EOF'
Import-commit-pragmas:
Expand Down Expand Up @@ -144,11 +143,11 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Create lastBuild and lastSuccessfulBuild symlinks
run: . ci/gha_functions.sh;
mkdir -p ${REPO_PATH};
rm -f ${REPO_PATH}last{,Successful}Build;
ln -s ${{ github.run_number }} ${REPO_PATH}lastBuild;
ln -s ${{ github.run_number }} ${REPO_PATH}lastSuccessfulBuild
run: |
mkdir -p ${REPO_PATH}
rm -f ${REPO_PATH}last{,Successful}Build
ln -s ${{ github.run_number }} ${REPO_PATH}lastBuild
ln -s ${{ github.run_number }} ${REPO_PATH}lastSuccessfulBuild
Calc-rpm-build-matrix:
name: Calculate RPM Build Matrix
Expand Down Expand Up @@ -365,9 +364,9 @@ jobs:
id: test-repo
if: steps.create-repo.outcome == 'success'
continue-on-error: true
run: . ci/gha_functions.sh;
dnf --disablerepo=\* --repofrompath
testrepo,file://${REPO_PATH}${{ github.run_number }}/artifact/artifacts/$TARGET
run: |
dnf --disablerepo=\* --repofrompath \
testrepo,file://${REPO_PATH}${{ github.run_number }}/artifact/artifacts/$TARGET \
repoquery -a
- name: Remove lastSuccessfulBuild link and exit failure
if: steps.test-repo.outcome != 'success'
Expand Down

0 comments on commit d9c3774

Please sign in to comment.