Skip to content

Commit

Permalink
Adding condition
Browse files Browse the repository at this point in the history
  • Loading branch information
desidiver committed Feb 16, 2022
1 parent b7176de commit 6deaac9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/conditional-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Testing conditions
on:
push:
tags:
- '*'
workflow_dispatch:
branches:
- '*'
jobs:
deploy_source:
name: build S3
strategy:
matrix:
node-version: [14.x]
runs-on: ubuntu-latest
steps:
- name: echo name
run: echo ${{github.ref_name}}
- name: configure AWS credentials and Deploy to QA
if: ${{ endsWith( github.ref_name , '-qa' ) }}
run: echo 'RUN QA'
- name: Otherwise configure AWS credentials and Deploy to Release S3
if: ${{ ! endsWith( github.ref_name , '-qa' ) }}
- name: deploy assets to S3 bucket
run: echo 'not QA'

0 comments on commit 6deaac9

Please sign in to comment.