Skip to content

Commit 70e7d14

Browse files
authored
ci: removes unused code and fixes tag workflow (#12)
* ci: removes unused code and fixes tag workflow * ci: updates readme
1 parent 09e4560 commit 70e7d14

17 files changed

Lines changed: 8 additions & 561 deletions

File tree

.flake8

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/tag.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@ jobs:
3636
ref: ${{ inputs.default_branch }}
3737
fetch-depth: 0
3838
token: ${{ secrets.SERVICE_TOKEN }}
39-
- name: Bump version and push tag
39+
- name: Compute new version number
4040
id: tag_version
4141
uses: mathieudutour/github-tag-action@v6.1
4242
with:
4343
github_token: ${{ secrets.SERVICE_TOKEN }}
4444
release_branches: ${{ inputs.default_branch }}
4545
default_bump: patch
46+
dry_run: true # Perform dryrun first to calculate new version
4647
- name: Get version file name set variables
4748
run: |
4849
pkg_name=$(grep -P 'version = \{attr = .*\}' pyproject.toml | grep -oP '\w+.__version__')
@@ -55,10 +56,14 @@ jobs:
5556
sed -i --debug --expression="s|__version__.*|__version__ = \"${{ env.VERSION }}\"|" "$VERSION_FILE"
5657
- name: Set output
5758
id: output_version
58-
run: echo "new_version=${{ env.VERSION }}" >> "$GITHUB_OUTPUT"
59+
run: echo "new_version=${{ env.VERSION }}" >> "$GITHUB_OUTPUT"
5960
- name: Commit and Push version bump
6061
uses: EndBug/add-and-commit@v9
6162
with:
6263
default_author: github_actions
6364
message: "ci: version bump [skip actions]"
6465
add: ${{ env.VERSION_FILE }}
66+
- name: Update tag
67+
run: |
68+
git tag v${{ env.VERSION }}
69+
git push origin v${{ env.VERSION }}

CHANGELOG.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@
22
aind-github-actions
33

44
[![License](https://img.shields.io/badge/license-MIT-brightgreen)](LICENSE)
5-
[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)
6-
![GitHub tag (latest SemVer pre-release)](https://img.shields.io/github/v/tag/AllenNeuralDynamics/aind-github-actions?include_prereleases&sort=semver)
75

86
## This repository is for workflows that may be reused in other workflows and repositories.
97

10-
GitHub actions workflows are found in .github/workflows
11-
12-
13-
8+
GitHub actions workflows are found in .github/workflows.
149

1510
### Pull requests
1611

doc_template/Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

doc_template/make.bat

Lines changed: 0 additions & 35 deletions
This file was deleted.

doc_template/source/_static/dark-logo.svg

Lines changed: 0 additions & 129 deletions
This file was deleted.
-254 KB
Binary file not shown.

0 commit comments

Comments
 (0)