Skip to content

Commit

Permalink
Output from separate workflow file does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
EZoni committed Nov 19, 2024
1 parent cfbcd0b commit a7dce8e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 24 deletions.
39 changes: 17 additions & 22 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,23 @@ concurrency:

jobs:
skip_checks:
name: Analyze
uses: ./.github/workflows/skip_checks.yml
with:
runs-on: macos-latest
#skip_checks:
# name: Skip
# runs-on: macos-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - name: Analyze PR
# run: |
# .github/workflows/scripts/check_diff.sh \
# ${{ github.event.pull_request.head.ref }} \
# ${{ github.event.pull_request.base.ref }} \
# ${{ github.event.pull_request.head.repo.clone_url }}
# - name: Debug
# run: echo "env.SKIP_CHECKS=${{ env.SKIP_CHECKS }}"
# outputs:
# skip: ${{ env.SKIP_CHECKS }}
name: Skip
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Analyze PR
run: |
.github/workflows/scripts/check_diff.sh \
${{ github.event.pull_request.head.ref }} \
${{ github.event.pull_request.base.ref }} \
${{ github.event.pull_request.head.repo.clone_url }}
- name: Debug
run: echo "env.SKIP_CHECKS=${{ env.SKIP_CHECKS }}"
outputs:
skip: ${{ env.SKIP_CHECKS }}
build_appleclang:
name: AppleClang
runs-on: macos-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scripts/check_diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ paths_ignore_string=$(IFS='|'; echo "${paths_ignore[*]}")
# Set skip variable after inspecting files changed
if ! grep -qEv "^(${paths_ignore_string})" check_diff.txt; then
echo "Skip checks"
echo "SKIP_CHECKS='true'" >> ${GITHUB_ENV}
echo "SKIP_CHECKS=true" >> ${GITHUB_ENV}
else
echo "Run checks"
echo "SKIP_CHECKS='false'" >> ${GITHUB_ENV}
echo "SKIP_CHECKS=false" >> ${GITHUB_ENV}
fi

0 comments on commit a7dce8e

Please sign in to comment.