Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/regestaitalia/abapversion
Extract version from abapGit repository
https://github.com/regestaitalia/abapversion
abapgit versioning
Last synced: 11 days ago
JSON representation
Extract version from abapGit repository
- Host: GitHub
- URL: https://github.com/regestaitalia/abapversion
- Owner: RegestaItalia
- Created: 2023-10-15T17:29:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-22T17:33:33.000Z (12 months ago)
- Last Synced: 2024-11-23T21:48:57.646Z (2 months ago)
- Topics: abapgit, versioning
- Language: TypeScript
- Homepage:
- Size: 347 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# abapVersion
Extract version from [abapGit](https://abapgit.org/) repository.Since the introduction of the version property in the [.abapgit.xml](https://docs.abapgit.org/user-guide/repo-settings/dot-abapgit.html) file, it is now possible to reference a static variable where the version of a repository is stored.
This action will extract from the repository the value of the defined variable.
To work the class/interface referenced in the .abapgit.xml file **must** be in the same repository.
# Usage
## Input
- **token**: Token to use in order to access the repository.
- **repoFullName**: Repository full name. Falls back to the name of the repository where the action is running.
- **branch**: Branch of the repository where the version should be extracted. Falls back to the branch where the action is running.## Output
- **version**: Value of the version variable.
# Examples
## Get the version of the current repository
```yml
- name: Get current repository version value
uses: RegestaItalia/abapVersion@main
id: abapVersion
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Print repository version
run: echo ${{ steps.abapVersion.outputs.version }}
```## Get the version of another repository
```yml
- name: Get abapGit repository version value
uses: RegestaItalia/abapVersion@main
id: abapVersion
with:
token: ${{ secrets.GITHUB_TOKEN }}
repoFullName: abapGit/abapGit
branch: main
- name: Print repository version
run: echo ${{ steps.abapVersion.outputs.version }}
```