Skip to content

Update gitworkflow.yml #8

Update gitworkflow.yml

Update gitworkflow.yml #8

Workflow file for this run

name: Git Workflow Pipeline
on:
push:
branches:
- develop
jobs:
push-to-master:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Check if tag exists
id: check_tag
run: |
if [[ $(git tag --points-at ea465bdb047159429605433d4249200eab505b9d) ]]; then
echo "TAG_EXISTS=true" >> $GITHUB_ENV
else
echo "TAG_EXISTS=false" >> $GITHUB_ENV
fi
- name: Set Tag Output
if: env.TAG_EXISTS == 'true'
run: echo "Tag exists"
- name: Push version to master
if: env.TAG_EXISTS == 'true'
run: |
git checkout master
git merge ${{ steps.check_tag.outputs.TAG_EXISTS }}
git push origin master
# - name: Configure AWS credentials
# uses: aws-actions/configure-aws-credentials@v1
# with:
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# aws-region: eu-west-3
# - name: Create Secrets
# uses: 1arp/[email protected]
# with:
# path: 'src/main/resources'
# is AbsolutePath: false
# file: 'application-secret.properties'
# content: |
# riot.api.key=${{ secrets.RIOT_API_KEY }}
# disc.api.key=${{ secrets.DISCORD_API_KEY }}
# - name: Set up JDK 17
# uses: actions/setup-java@v3
# with:
# java-version: '17'
# distribution: 'adopt'
# cache: maven
# - name: Build with Maven
# run: mvn clean package -DskipTests