Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .github/workflows/fifthworkflow.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/firstworkflow.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/fourthworkflow.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/second-workflow.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/sixth-workflow-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Sixth Workflow Using GitHub Actions

run-name: >+
Sixth workflow
${{ github.actor }} has triggered this workflow
using ${{ github.event_name }} event
on branch ${{ github.ref }} of ${{github.repository}} repo.
on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
first-job:
runs-on: ubuntu-latest
steps:
- name: Checking out to the repository
uses: actions/checkout@v4
- name: List all the files in the repo branch
run: ls -la
- name: Printing the contents of a file
run: cat firstfile.txt
second-job:
runs-on: ubuntu-latest
needs: first-job
if: always()
steps:
- name: Send notification about the cicd status
if: always()
uses: dawidd6/action-send-mail@v6
with:
server_address: ${{secrets.SMTP_HOST}}
server_port: 587
secure: false
username: ${{secrets.SMTP_USERNAME}}
password: ${{secrets.SMTP_PASSWORD}}
subject: Github Actions job result
to: ${{vars.MAIL_TO_LIST}}
from: sajidali - GitHub Action
body: >+
Build job of ${{github.repository}} completed with result status of ${{needs.first-job.result}}
"Find more details on: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
20 changes: 0 additions & 20 deletions .github/workflows/sixthworkflow.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/thirdworkflow.yml

This file was deleted.

Loading