Update testing_flow.yml

This commit is contained in:
jstan-isch 2023-01-21 15:17:46 -06:00 committed by GitHub
parent f2b1f2ab45
commit 75eccc45c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"