Check new version #25991
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check new version | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 * * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
curl --fail -v -L https://aka.ms/scriptforpermsonhana -o msawb-plugin-config-com-sap-hana.sh || exit 1 | |
if ! git diff --exit-code msawb-plugin-config-com-sap-hana.sh; then git add msawb-plugin-config-com-sap-hana.sh; export VERSION=$(grep Constant_Script_Version= msawb-plugin-config-com-sap-hana.sh| awk -F'=' '{ print $2 }'| sed 's/"//g'); git commit -m "Version ${VERSION}"; git push; fi |