Skip to content

Commit

Permalink
ci: test
Browse files Browse the repository at this point in the history
Signed-off-by: r3drun3 <[email protected]>
  • Loading branch information
R3DRUN3 committed Jan 10, 2024
1 parent 52f5074 commit dcad823
Showing 1 changed file with 45 additions and 45 deletions.
90 changes: 45 additions & 45 deletions .github/workflows/patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,49 +83,49 @@ jobs:
run: |
docker push ghcr.io/r3drun3/immunize/${{ steps.copa.outputs.patched-image }}
- name: Write Artifacts
run: |
echo ${{ matrix.images }} >> outputs/${{ matrix.images }}.txt
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: outputs
path: outputs/*.txt

send-mail-report:
runs-on: ubuntu-latest
needs: immunize
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- uses: actions/checkout@v3
- name: Load outputs
uses: actions/download-artifact@v3
with:
name: outputs
path: outputs

- run: |
ls outputs
cat outputs/*.txt
# Access the 'images' array from the 'immunize' job outputs
- name: Set PATCHED_IMAGES
id: set_patched_images
run: |
IMAGES="${{ needs.immunize.outputs.images }}"
echo "PATCHED_IMAGES=${IMAGES}" >> $GITHUB_ENV
echo "Patched images: $IMAGES" # Print for debugging
shell: bash

- name: Send Mail Report
run: |
python $GITHUB_WORKSPACE/send_mail_report.py
env:
EMAIL_RECIPIENTS: ${{ secrets.EMAIL_RECIPIENTS }}
EMAIL_ADDRESS: ${{ secrets.EMAIL_ADDRESS }}
EMAIL_PASSWORD: ${{ secrets.EMAIL_PASSWORD }}
PATCHED_IMAGES: ${{ env.PATCHED_IMAGES }}
# - name: Write Artifacts
# run: |
# echo ${{ matrix.images }} >> outputs/${{ matrix.images }}.txt

# - name: Upload artifacts
# uses: actions/upload-artifact@v3
# with:
# name: outputs
# path: outputs/*.txt

# send-mail-report:
# runs-on: ubuntu-latest
# needs: immunize
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v2

# - uses: actions/checkout@v3
# - name: Load outputs
# uses: actions/download-artifact@v3
# with:
# name: outputs
# path: outputs

# - run: |
# ls outputs
# cat outputs/*.txt

# # Access the 'images' array from the 'immunize' job outputs
# - name: Set PATCHED_IMAGES
# id: set_patched_images
# run: |
# IMAGES="${{ needs.immunize.outputs.images }}"
# echo "PATCHED_IMAGES=${IMAGES}" >> $GITHUB_ENV
# echo "Patched images: $IMAGES" # Print for debugging
# shell: bash

# - name: Send Mail Report
# run: |
# python $GITHUB_WORKSPACE/send_mail_report.py
# env:
# EMAIL_RECIPIENTS: ${{ secrets.EMAIL_RECIPIENTS }}
# EMAIL_ADDRESS: ${{ secrets.EMAIL_ADDRESS }}
# EMAIL_PASSWORD: ${{ secrets.EMAIL_PASSWORD }}
# PATCHED_IMAGES: ${{ env.PATCHED_IMAGES }}

0 comments on commit dcad823

Please sign in to comment.