Skip to content

Commit

Permalink
Workflow for building release files
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvisscher committed Jul 15, 2024
1 parent 69fd02b commit 43d4a9c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/check_dev_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
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 }}

0 comments on commit 43d4a9c

Please sign in to comment.