Skip to content

Commit e55c516

Browse files
committed
Fix variable references
1 parent 37e94ab commit e55c516

File tree

3 files changed

+20
-10
lines changed

3 files changed

+20
-10
lines changed

.gitbugtraq

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# .gitbugtraq for Git GUIs (e.g. SmartGit) to show links to the Github issue tracker.
2+
[bugtraq]
3+
url = https://github.com/spacetown/logging_pipeline/issues/%BUGID%
4+
loglinkregex = "#\\d+"
5+
logregex = \\d+

.github/workflows/CI.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ jobs:
2525
permissions:
2626
contents: read
2727
outputs:
28-
tag: ${{ steps.outputs.get_version.tag }}
29-
tag_message: ${{ steps.outputs.get_version.tag_message }}
28+
tag: ${{ steps.get_version.outputs.tag }}
29+
tag_message: ${{ steps.get_version.outputs.tag_message }}
3030

3131
# The variables used for publishing the data
32-
publish_run_job: ${{ (github.repository == 'Spacetown/logging_pipeline') && (github.event.ref == 'refs/heads/main') && (steps.outputs.get_version.tag != '') || inputs.do_test_release }}
33-
publish_environment_name: ${{ (((steps.outputs.get_version.tag == '') || inputs.do_test_release) && 'test.pypi') || 'pypi' }}
34-
publish_environment_url: https://${{ (((steps.outputs.get_version.tag == '') || inputs.do_test_release) && 'test.pypi') || 'pypi' }}.org/p/logging-pipeline
35-
publish_push_tag: ${{ (github.repository == 'Spacetown/logging_pipeline') && (github.event.ref == 'refs/heads/main') && (steps.outputs.get_version.tag != '') }}
32+
publish_run_job: ${{ (github.repository == 'spacetown/logging_pipeline') && (github.event.ref == 'refs/heads/main') && (steps.get_version.outputs.tag != '') || inputs.do_test_release }}
33+
publish_environment_name: ${{ (((steps.get_version.outputs.tag == '') || inputs.do_test_release) && 'test.pypi') || 'pypi' }}
34+
publish_environment_url: https://${{ (((steps.get_version.outputs.tag == '') || inputs.do_test_release) && 'test.pypi') || 'pypi' }}.org/p/logging-pipeline
35+
publish_push_tag: ${{ (github.repository == 'spacetown/logging_pipeline') && (github.event.ref == 'refs/heads/main') && (steps.get_version.outputs.tag != '') }}
3636
# Use https://upload.pypi.org/legacy for a tag in pypi environment or in all other cases https://test.pypi.org/legacy
37-
publish_repository_url: https://${{ (((steps.outputs.get_version.tag == '') || inputs.do_test_release) && 'test.pypi') || 'upload.pypi' }}.org/legacy/
37+
publish_repository_url: https://${{ (((steps.get_version.outputs.tag == '') || inputs.do_test_release) && 'test.pypi') || 'upload.pypi' }}.org/legacy/
3838
timeout-minutes: 10
3939

4040
steps:
@@ -60,8 +60,11 @@ jobs:
6060
FirstHeading="$(sed -n '/^## / { s/^## //; p; }' CHANGELOG.md | head -n 1)"
6161
tag="$(echo "$FirstHeading" | sed -n '/^[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*/ p')"
6262
if [[ ! -z "$tag" ]] ; then
63+
echo "New tag is $tag"
6364
echo "tag=$tag" >> $GITHUB_OUTPUT
64-
echo "tag_message=$tag_message ($(date -I))" >> $GITHUB_OUTPUT
65+
echo "tag_message=$tag ($(date -I))" >> $GITHUB_OUTPUT
66+
else
67+
echo "Development version without a new tag"
6568
fi
6669
6770
- name: Install spellchecker
@@ -258,7 +261,7 @@ jobs:
258261
body_path: RELEASE_NOTES.md
259262

260263
- name: Publish distribution 📦 to ${{ ((needs.pre-checks.outputs.tag == '') && 'test.pypi') || 'pypi' }}.org
261-
if: ${{ (needs.pre-checks.outputs.publish_push_tag == 'true') || ((github.repository == 'Spacetown/logging_pipeline') && inputs.do_test_release) }}
264+
if: ${{ (needs.pre-checks.outputs.publish_push_tag == 'true') || ((github.repository == 'spacetown/logging_pipeline') && inputs.do_test_release) }}
262265
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc
263266
with:
264267
repository-url: ${{ needs.pre-checks.outputs.publish_repository_url }}

cspell.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
],
66
"ignorePaths": [
77
"/.git/",
8+
"/.gitbugtraq",
89
"**/.venv/",
910
"src/logging_pipeline/bootstrap.py"
1011
],
@@ -33,7 +34,8 @@
3334
"nwgh",
3435
"sdist",
3536
"setuptools",
36-
"seunlanlege"
37+
"seunlanlege",
38+
"gitbugtraq"
3739
],
3840
"ignoreRegExpList": [
3941
// GH actions

0 commit comments

Comments
 (0)