Fix "nur Für Leitende" = 0 bug #154
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-version-number | |
# See docu/Continuous Integration And_General_Tests.md for detailed information-module. | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
check-version-number: | |
name: check-version-number | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2-beta | |
with: | |
node-version: '16' | |
# TODO: Check Version number of other components! | |
- name: Load Version of Latest Release | |
id: check # This will be the reference for getting the outputs. | |
uses: EndBug/version-check@v1 | |
with: | |
file-name: ./frontend/package.json | |
file-url: https://raw.githubusercontent.com/wp99cp/eMeal_menuplanung/master/frontend/package.json | |
static-checking: localIsNew | |
- name: Log when unchanged | |
if: steps.check.outputs.changed != 'true' | |
run: exit 1 | |
- name: 'Comment PR' | |
uses: actions/github-script@v3 | |
if: github.event_name == 'pull_request' | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const { issue: { number: issue_number }, repo: { owner, repo } } = context; | |
github.issues.createComment({ | |
issue_number, owner, repo, | |
body: '- [X] Version changed since last release! Version of this release: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }}).' | |
}); | |
github.issues.addLabels({ | |
issue_number, owner, repo, | |
labels: ['upcomming release'] | |
}); | |
- run: exit 0 |