From 43d4a9ca3f1949fc83989bc8ae9cd70a42d00c6d Mon Sep 17 00:00:00 2001 From: Marin Visscher Date: Mon, 15 Jul 2024 21:05:07 +0200 Subject: [PATCH] Workflow for building release files --- .github/workflows/check_dev_update.yml | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/check_dev_update.yml b/.github/workflows/check_dev_update.yml index 0bfa880..229eaaa 100644 --- a/.github/workflows/check_dev_update.yml +++ b/.github/workflows/check_dev_update.yml @@ -72,3 +72,32 @@ jobs: run: gh pr create -B main -H main --title 'Updated windows spec' --body 'Created by Github action' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload environment as artifact + uses: actions/upload-artifact@master + with: + name: win-release-spec + path: ab_releases/dev/windows/win-environment-${{needs.check-release.outputs.latest}}.txt + create-pull-request: + runs-on: ubuntu-latest + needs: [check-release, build-dev-windows] + permissions: + pull-requests: write + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Fetch Windows release spec + uses: actions/download-artifact@master + with: + name: win-release-spec + path: ab_releases/dev/windows/win-environment-${{needs.check-release.outputs.latest}}.txt + - name: Create commit + run: | + git checkout -b spec-${{needs.check-release.outputs.latest}} + git config --global user.email "action@github.com" + git config --global user.name "Github Action" + git add ab_releases/dev/windows/win-environment-${{needs.check-release.outputs.latest}}.txt + git commit -a -m "Updated specs to ${{needs.check-release.outputs.latest}}" + - name: Create PR + run: gh pr create -B spec-${{needs.check-release.outputs.latest}} -H main --title 'Updated windows spec' --body 'Created by Github action' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file