Skip to content

RegestaItalia/abapVersion

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

abapVersion

Extract version from abapGit repository.

Since the introduction of the version property in the .abapgit.xml 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

- 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

- 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 }}