Added the use of semver to update version based on GitHub label #27
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: Integration Test | |
on: [push, pull_request] | |
jobs: | |
self-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Main to compare | |
uses: actions/checkout@v4 | |
with: | |
ref: 'main' | |
path: 'main' | |
- uses: actions/checkout@v4 | |
with: | |
path: 'branch' | |
- name: Self test | |
if: ${{ github.ref != 'refs/heads/main' }} | |
id: selftest | |
uses: stfc/check-version-action@main | |
with: | |
app_version_path: "version.txt" | |
docker_compose_path: "docker-compose.yml" | |
labels: ${{ toJSON(github.event.pull_request.labels.*.name) }} | |
- name: Log Success | |
if: ${{ env.app_updated == 'true' }} | |
run: | | |
echo "App version has been updated correctly!" | |
- name: Log Success | |
if: ${{ env.compose_updated == 'true' }} | |
run: | | |
echo "Compose version has been updated correctly!" |