Skip to content

Commit 585b9a9

Browse files
committed
ci(python): use git revert instead of reset to avoid push
1 parent 840955c commit 585b9a9

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/python_uniffi_ci_cd.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,5 +270,6 @@ jobs:
270270
- name: Reset branch
271271
run: |
272272
# Hard reset to the original SHA that triggered the workflow
273-
git reset --hard ${{ github.sha }}
274-
git push --force
273+
git revert --no-commit HEAD
274+
git commit -m "chore(python/${{ inputs.crate }}): revert version commit made by CI due to failure" -m "failed run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
275+
git push

packages/python/algokit_transact/release.config.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
export default {
22
branches: [{ name: "main", prerelease: "alpha" }],
3-
repositoryUrl: "https://github.com/joe-p/algokit-core",
3+
repositoryUrl: "https://github.com/algorandfoundation/algokit-core",
44
tagFormat: "python/algokit_transact@${version}",
55
plugins: [
66
[
77
"semantic-release-scope-filter",
88
{
99
scopes: [
10-
"python",
11-
"python/algokit_transact",
12-
"algokit_transact",
13-
"algokit_transact_ffi",
10+
"python", // A change to the python build process that impacts this package
11+
"python/algokit_transact", // A change that only affects this python package
12+
"algokit_transact", // A change made to algokit_transact crate
13+
"algokit_transact_ffi", // A change made to algokit_transact_ffi crate
1414
],
15-
filterOutMissingScope: false,
15+
filterOutMissingScope: false, // Assume any commit without a scope affects this package
1616
},
1717
],
1818
[

0 commit comments

Comments
 (0)