From 883199c0b6523bba1f8aa2bf73292b45c85f5253 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Mon, 10 Mar 2025 15:12:50 +0100 Subject: [PATCH] WF --- .github/workflows/move-to-main-repo.yaml | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/move-to-main-repo.yaml diff --git a/.github/workflows/move-to-main-repo.yaml b/.github/workflows/move-to-main-repo.yaml new file mode 100644 index 0000000..fc7a3a1 --- /dev/null +++ b/.github/workflows/move-to-main-repo.yaml @@ -0,0 +1,27 @@ +name: Move new Scripts to Main Repository + +on: + schedule: + - cron: "1 0 * * *" # Runs daily at 00:01 UTC + workflow_dispatch: + +jobs: + move-to-main-repo: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: List Issues in Repository + id: list_issues + run: | + echo "Filtering Issues with Label MigrationTest" + script_name=$(gh issue list --label "MigrationTest" --json title --jq '.[0].title') # Assuming the first issue is the one you want + echo "Found script name: $script_name" + echo "script_name=$script_name" >> $GITHUB_ENV # Set the script name as an environment variable for later use + + - name: Print Script Name + run: | + echo "The script name is: ${{ env.script_name }}"