GitHub Action that labels your PR with the BundleShortVersionString
from your iOS app's Info.plist file.
Formed from a mash up of https://github.com/damienaicheh/update-ios-version-info-plist-action and https://github.com/actions/labeler
Required GitHub access token, e.g. ${{ secrets.GITHUB_TOKEN }}
Required The relative path for the Info.plist file.
Path glob: only apply the label if there are changed files in this path.
String format to customize the format of the label. Default is just the raw version number. Action will replace the substring {version}
in this format with the version number it reads from the plist.
- name: Label from Info.plist
uses: classpass/label-ios-version-info-plist-action@v1.0.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
info-plist-path: './path_to_your/Info.plist'
changed-files: 'src/ios/**' # optional
label-format: 'iOS {version}' # optional
The action is written in TypeScript, to compile to JS for deployment run
npm install
npm run package-action