Skip to content

Commit

Permalink
Create newpipelinefortesting (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandhya1874 authored Dec 4, 2024
1 parent 16f933a commit 50639d9
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/newpipelinefortesting
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Pipeline [test -> build -> deploy]

on:
push:
branches:
- main

workflow_dispatch:
inputs:
environment:
description: Environment
type: choice
required: true
options:
- dev
- preprod
- staging
- production
default: 'dev'

jobs:
display_fields:
runs-on: ubuntu-latest
steps:
- name: Display GitHub Event Fields
run: |
echo "Event Name: ${{ github.event_name }}"
echo "Base Ref: ${{ github.base_ref }}"
echo "Event Action: ${{ github.event.action }}"
echo "Pull Request Merged: ${{ github.event.pull_request.merged }}"
echo "Pull Request Number: ${{ github.event.pull_request.number }}"
echo "Pull Request Title: ${{ github.event.pull_request.title }}"
echo "Pull Request Body: ${{ github.event.pull_request.body }}"
echo "Pull Request Head Ref: ${{ github.event.pull_request.head.ref }}"
echo "Pull Request Base Ref: ${{ github.event.pull_request.base.ref }}"
echo "Pull Request User Login: ${{ github.event.pull_request.user.login }}"

0 comments on commit 50639d9

Please sign in to comment.