mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-29 18:55:49 +00:00
Update testing_flow.yml
This commit is contained in:
parent
f2b1f2ab45
commit
75eccc45c8
1 changed files with 25 additions and 40 deletions
65
.github/workflows/testing_flow.yml
vendored
65
.github/workflows/testing_flow.yml
vendored
|
@ -1,45 +1,30 @@
|
||||||
name: Version Build
|
name: Test Deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
pull_request:
|
||||||
#push:
|
branches:
|
||||||
#branches: master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-version:
|
see-the-contexts:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Git checkout
|
- name: Checkout pull request HEAD
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: '0'
|
ref: ${{ github.event.pull_request.head.ref }}
|
||||||
persist-credentials: true
|
token: ${{ secrets.MY_PAT }}
|
||||||
#token: ${{ secrets.MY_PAT }}
|
|
||||||
- name: git
|
- name: Create a file
|
||||||
run: |
|
run: |
|
||||||
${{ github.workspace }}/CI/scripts/validate_yaml
|
touch file8.txt
|
||||||
echo "::error ${{ github.workspace }}/CI/scripts/validate_yaml::Missing Value"
|
echo "added dummy file 1" > file8.txt
|
||||||
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
|
|
||||||
git --version
|
- name: commit and push
|
||||||
git config user.name "jstan-isch"
|
run: |
|
||||||
git config user.email "stanleyikegwuonu@gmail.com"
|
git config user.name jstan-isch
|
||||||
git status
|
git config user.email stanleyikegwuonu@gmail.com
|
||||||
git tag
|
git add .
|
||||||
git describe
|
git commit -m "generated"
|
||||||
echo -e "\n Deleting previous QA tag"
|
git push
|
||||||
git log QA...HEAD > log.txt
|
|
||||||
git tag -d QA
|
|
||||||
echo -e "\n DONE"
|
|
||||||
echo -e "\n Push tags to master"
|
|
||||||
git push origin :refs/tags/QA
|
|
||||||
echo -e "\n DONE"
|
|
||||||
echo -e "\n Creating new QA tag to HEAD"
|
|
||||||
git tag -a QA -F log.txt
|
|
||||||
echo -e "\n DONE"
|
|
||||||
echo -e "\n Push tags to master"
|
|
||||||
git rev-list -n 1 QA
|
|
||||||
git push origin QA
|
|
||||||
echo -e "\n DONE"
|
|
||||||
echo -e "\n Job Completed"
|
|
||||||
|
|
Loading…
Reference in a new issue