-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69fd02b
commit 43d4a9c
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |