From: TizenAPI-Bot <37820187+TizenAPI-Bot@users.noreply.github.com> Date: Tue, 18 May 2021 05:47:11 +0000 (+0900) Subject: Create nightly-release.yml X-Git-Tag: accepted/tizen/unified/20231205.024657~1905 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=55e9e82e8f9f7e6346ad06a2ceeff25a51abedb8;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Create nightly-release.yml --- diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml new file mode 100644 index 0000000..72362ae --- /dev/null +++ b/.github/workflows/nightly-release.yml @@ -0,0 +1,39 @@ +name: "Nightly Release" + + +on: + schedule: + - cron: '0 15 * * *' + workflow_dispatch: + +env: + TARGET_BRANCHES: 'master API8' + +jobs: + nightly: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Find Branches to Release + id: find-targets + run: | + TARGETS="" + # find branches without the version tag + for x in $TARGET_BRANCHES; do + tags=$(git tag --contains origin/$x) + for t in $tags; do + if [[ ! $t =~ v^[0-9]+\.[0-9]+\.[0-9]+ ]]; then + TARGETS="${TARGETS} $x" + fi + done + done + # remove duplicated branch names + TARGETS=$(printf "%q\n" $TARGETS | sort -u) + echo "::set-output name=targets::${TARGETS}" + + - name: Test + run: | + echo ${{ steps.find-targets.outputs.targets }}