Skip to content

trunk-merge/pr-36/e2bcdb15-62ce-4cc0-945c-a637805190a5 #4

trunk-merge/pr-36/e2bcdb15-62ce-4cc0-945c-a637805190a5

trunk-merge/pr-36/e2bcdb15-62ce-4cc0-945c-a637805190a5 #4

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Post Commit
permissions: read-all
on:
pull_request:
types:
- opened
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
if: startsWith(github.head_ref, 'trunk-merge/')
# The type of runner that the job will run on
runs-on: ubuntu-latest
name: Commit Validation
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Possibly fail
id: possibly_fail
uses: andstor/file-existence-action@v1
with:
files: workspace/target_2/another-added-file.txt
- name: Fail
if: steps.possibly_fail.outputs.files_exists == 'true'
run: exit 1