Skip to content

chore(deps): update actions/upload-artifact action to v4 #2381

chore(deps): update actions/upload-artifact action to v4

chore(deps): update actions/upload-artifact action to v4 #2381

Workflow file for this run

name: context
on:
pull_request:
types:
- opened
- synchronize # default
- ready_for_review
- labeled
- unlabeled
- closed
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: echo toJson(github)
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: github.event.action
run: |
echo "- github.event.action : ${{ github.event.action }}"
echo "- github.event.action : ${{ github.event.action }}" >> "$GITHUB_STEP_SUMMARY"
label:
runs-on: ubuntu-latest
env:
SKIP: 'FALSE'
steps:
- if: ${{ github.event.action == 'labeled' && !contains(toJson('["test", "build"]'), github.event.label.name) }}
id: skip
name: ignore unrelavant labels
run: |
echo "SKIP=TRUE" >> "$GITHUB_ENV"
echo "- github.event.action : ${{ github.event.action }}" >> "$GITHUB_STEP_SUMMARY"
echo "- github.event.label.name : ${{ github.event.label.name }}" >> "$GITHUB_STEP_SUMMARY"
- name: Dump GitHub context
if: ${{ env.SKIP != 'TRUE' }}
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "$GITHUB_CONTEXT"
echo "- github.event.action : ${{ github.event.action }}" >> "$GITHUB_STEP_SUMMARY"
- if: ${{ contains( github.event.pull_request.labels.*.name, 'test') }}
name: check if a pr has test label
run: |
echo "- github.event.pull_request.labels has 'test'" >> "$GITHUB_STEP_SUMMARY"