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 43d4a9c commit 0518524
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/check_dev_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
latest: ${{ steps.check_anaconda.outputs.latest_version }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get current version from repo
id: check_repo
Expand All @@ -43,16 +43,14 @@ jobs:
build-dev-windows:
runs-on: windows-latest
permissions:
pull-requests: write
needs: check-release
if: ${{ needs.check-release.outputs.current != needs.check-release.outputs.latest }}
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install current environment
uses: mamba-org/setup-micromamba@v1
with:
Expand All @@ -61,17 +59,7 @@ jobs:
- name: Update to latest
run: |
micromamba install -n environment -c bsteubing -y activity-browser-dev=${{needs.check-release.outputs.latest}}
- name: List updated environment
run: |
echo micromamba env export --explicit -n environment >> ab_releases/dev/windows/win-environment-${{needs.check-release.outputs.latest}}.txt
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 windows spec to ${{needs.check-release.outputs.latest}}"
- name: Create pull request
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:
Expand All @@ -84,7 +72,7 @@ jobs:
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Fetch Windows release spec
uses: actions/download-artifact@master
with:
Expand Down

0 comments on commit 0518524

Please sign in to comment.