Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #679 from fao89/fix_release_script
Browse files Browse the repository at this point in the history
Fix release script
  • Loading branch information
fao89 authored Jul 13, 2021
2 parents 26d619d + a017564 commit 9f85fa4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .ci/assets/httpie/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"default_options": [
"--ignore-stdin",
"--pretty=format",
"--traceback"
]
}
5 changes: 5 additions & 0 deletions .ci/scripts/update_redmine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ export RELEASE=$(echo $COMMIT_MSG | awk '{print $2}')
export MILESTONE_URL=$(echo $COMMIT_MSG | grep -o "Redmine Milestone: .*" | awk '{print $3}')
export REDMINE_QUERY_URL=$(echo $COMMIT_MSG | grep -o "Redmine Query: .*" | awk '{print $3}')

if [[ "$REDMINE_QUERY_URL" == "https://pulp.plan.io/issues?set_filter=1&status_id=*&issue_id=" ]]; then
echo "No issues! $REDMINE_QUERY_URL"
exit 0
fi

echo "Releasing $RELEASE"
echo "Milestone URL: $MILESTONE_URL"
echo "Query: $REDMINE_QUERY_URL"
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install httpie
run: |
echo ::group::HTTPIE
sudo apt-get update -yq
sudo -E apt-get -yq --no-install-suggests --no-install-recommends install httpie
echo ::endgroup::
echo "HTTPIE_CONFIG_DIR=$GITHUB_WORKSPACE/.ci/assets/httpie/" >> $GITHUB_ENV
- name: Setting secrets
run: python3 .github/workflows/scripts/secrets.py "$SECRETS_CONTEXT"
env:
Expand Down

0 comments on commit 9f85fa4

Please sign in to comment.