Skip to content

Commit

Permalink
move ys workflows to separate directory
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
biojppm committed Jan 25, 2025
1 parent 2abde1b commit d8f4d01
Show file tree
Hide file tree
Showing 28 changed files with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/Makefile → .github/workflows-in/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ YS := $(YS_PREFIX)/bin/ys-$(YS_VERSION)

INPUT_FILES := $(wildcard */*)
SOURCE_FILES := $(wildcard *.ys)
TARGET_FILES := $(SOURCE_FILES:%.ys=%.yml)
TARGET_FILES := $(SOURCE_FILES:%.ys=../workflows/%.yml)

export PATH := $(YS_PREFIX)/bin:$(PATH)
export YSPATH := $(shell pwd -P)/ys
Expand All @@ -24,7 +24,7 @@ DIFF_ORIG_COMMIT ?= HEAD
diff:
@for s in $(SOURCE_FILES); do \
s=$${s##*/}; \
t=$${s%.yml}; \
t=../workflows/$${s%.yml}; \
[[ $$(git show $(DIFF_ORIG_COMMIT):.github/workflows/.$$t \
2>/dev/null) ]] && t=.$$t; \
diff -u --color=auto \
Expand All @@ -43,12 +43,14 @@ force:
touch *.ys


%.yml: %.ys $(YS) $(INPUT_FILES)
../workflows/%.yml: %.ys $(YS) $(INPUT_FILES)
@chmod u+w ../workflows
@if [ -f "$@" ] ; then chmod a+w $@ ; fi
@echo "# DO NOT EDIT - GENERATED FROM .github/workflows/$<" > $@
@echo >> $@
$(YS) -Y $< >> $@
@chmod a-w $@
@chmod u-w ../workflows
@wc -lm --total=never $< $@


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d8f4d01

Please sign in to comment.