Skip to content

Commit

Permalink
Modified github-action-nginx.ynl
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankit-clouddrove committed Feb 7, 2024
1 parent 8491354 commit 2cf0e08
Showing 1 changed file with 11 additions and 30 deletions.
41 changes: 11 additions & 30 deletions .github/workflows/github-action-nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,13 @@
name: Setup-Nginx

on:
pull_request:
types:
- opened

# - closed
# branches:
# branches:
# - feature1
# - main
# tags:
# - v1
jobs:

job1:
runs-on: ubuntu-latest
# Expose step outputs as job outputs
outputs:
output1: ${{ steps.step1.outputs.test }}
output2: ${{ steps.step2.outputs.test }}
steps:
- id: step1
run: echo "test=hello" >> "$GITHUB_OUTPUT"
- id: step2
run: echo "test=world" >> "$GITHUB_OUTPUT"
job2:
runs-on: ubuntu-latest
needs: job1
steps:
- run: echo ${{needs.job1.outputs.output1}} ${{needs.job1.outputs.output2}}
push
branches:
- master

pull_request
branches:
- [feature1, prod]



Expand Down Expand Up @@ -75,12 +53,15 @@ jobs:
env:
USER_NAME: ${{ secrets.USER_NAME }}
USER_PASSWORD: ${{ secrets.USER_PASSWORD }}

needs: [build,test,deploy]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: print name
run: echo "My USER_NAME is ${{env.USER_NAME}}. USER_PASSWORD is ${{env.USER_PASSWORD}}"
run: |
echo "USER_NAME=${USER_NAME}"
echo "USER_PASSWORD=${USER_PASSWORD}"
- name: Create and Navigate to Directory
run: |
Expand Down

0 comments on commit 2cf0e08

Please sign in to comment.