Skip to content

Commit 44ec391

Browse files
authored
fix: gh actions mcp deploy (#1096)
1 parent 71f798b commit 44ec391

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

.circleci/validation-config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ jobs:
280280
# https://circleci.com/gh/mozilla/metric-config-parser/edit#env-vars
281281
# For more on twine, see:
282282
# https://twine.readthedocs.io/en/latest/
283-
twine upload --skip-existing dist/*
283+
# twine upload --skip-existing dist/*
284284
nothing-to-do:
285285
executor: metric-config-parser-executor
286286
steps:

.github/pull_request_template.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
3+
fixes #

.github/workflows/deploy-metric-config-parser.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
branches:
99
- main
1010
paths:
11-
- 'lib/metric-config-parser/*.yaml'
11+
- 'lib/metric-config-parser/pyproject.toml'
1212

1313
permissions:
1414
contents: read
@@ -18,22 +18,25 @@ jobs:
1818
uses: ./.github/workflows/changed-files.yml
1919
with:
2020
path_filter: |
21-
lib/metric-config-parser/*.yaml
21+
lib/metric-config-parser/pyproject.toml
2222
2323
check-version-change:
2424
runs-on: ubuntu-latest
2525
needs: changed
26+
permissions:
27+
contents: read
2628
outputs:
2729
proceed: ${{ steps.version_change.outputs.proceed }}
2830
if: needs.changed.outputs.any_changed == 'true'
2931
steps:
3032
- name: Checkout
31-
uses: actions/checkout@v4
33+
uses: actions/checkout@v5
34+
with:
35+
fetch-depth: 0
3236
- id: version_change
3337
name: Check for package version change in last commit before proceeding.
34-
working-directory: ~/project/lib/metric-config-parser
3538
run: |
36-
if git diff main HEAD~1 pyproject.toml | grep 'version'
39+
if git diff origin/main HEAD~1 -- ./lib/metric-config-parser/pyproject.toml | grep '\+version'
3740
then
3841
echo "Found changes to package version dir, proceeding with deployment."
3942
echo "proceed=true" >> "GITHUB_OUTPUT"
@@ -50,27 +53,25 @@ jobs:
5053
if: needs.check-version-change.outputs.proceed == 'true'
5154
steps:
5255
- name: Checkout
53-
uses: actions/checkout@v4
54-
with:
55-
path: ~/project
56+
uses: actions/checkout@v5
5657
- name: Setup python
5758
uses: actions/setup-python@v5
5859
with:
5960
python-version: "3.10"
6061
cache: 'pip'
6162
- name: Install deployment tools
62-
working-directory: ~/project/lib/metric-config-parser
63+
working-directory: ./lib/metric-config-parser
6364
run: |
6465
python3 -m pip install --upgrade pip build setuptools wheel
6566
- name: Create the distribution files
66-
working-directory: ~/project/lib/metric-config-parser
67+
working-directory: ./lib/metric-config-parser
6768
run: |
6869
python3.10 -m build --sdist
6970
- name: Upload distribution
7071
uses: actions/upload-artifact@v4
7172
with:
7273
name: release-dist
73-
path: ~/project/lib/metric-config-parser/dist
74+
path: ./lib/metric-config-parser/dist
7475

7576
deploy-metric-config-parser:
7677
runs-on: ubuntu-latest

lib/metric-config-parser/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[build-system]
2-
requires = ["setuptools", "pytest-runner"]
2+
requires = ["pytest-runner", "setuptools"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "mozilla-metric-config-parser"
7-
version = "2025.8.1"
7+
version = "2025.8.2"
88
authors = [{ name = "Mozilla Corporation", email = "[email protected]" }]
99
description = "Parses metric configuration files."
1010
readme = "README.md"

0 commit comments

Comments
 (0)