Skip to content
Merged
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
11 changes: 7 additions & 4 deletions .github/workflows/delete-artifacts-of-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
name: Delete artifacts of workflow run

on:
pull_request:
branches:
- master
workflow_dispatch:
inputs:
pr-number:
description: 'Simulate a PR number, to use in content of the temp artifacts'
required: true
default: '648'

jobs:
create_artifacts:
runs-on: ${{ vars.RUNNER_UBUNTU }}
steps:
- name: Build fake artifact
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_NUMBER: ${{ inputs.pr-number }}
run: |
mkdir site
echo "This is a preview site for <b>PR #${PR_NUMBER}</b>" > site/file1.html
Expand Down