Skip to content

Commit eea00a7

Browse files
update build environment script for new repo structure
1 parent 5a8f462 commit eea00a7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/update_build_environment.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Rebuild and publish new ubcdsci/py-intro-to-ds image on DockerHub
22
on:
33
push:
44
branches:
5-
- dev
5+
- main
66
paths:
77
- Dockerfile
88
jobs:
@@ -11,11 +11,11 @@ jobs:
1111
permissions:
1212
contents: write
1313
steps:
14-
- name: Checkout dev
14+
- name: Checkout main
1515
uses: actions/checkout@v3
1616
with:
1717
fetch-depth: '0'
18-
ref: 'dev'
18+
ref: 'main'
1919
- name: Rebuild and publish image
2020
id: rebuild
2121
uses: elgohr/Publish-Docker-Github-Action@v5
@@ -29,12 +29,12 @@ jobs:
2929
run: |
3030
git config --local user.email "[email protected]"
3131
git config --local user.name "GitHub Action"
32-
git pull origin dev
32+
git pull origin main
3333
sed 's/ubcdsci\/py-intro-to-ds:[[:alnum:]]\+/ubcdsci\/py-intro-to-ds:${{ steps.rebuild.outputs.snapshot-tag }}/g' build_html.sh > build_html.tmp && mv build_html.tmp build_html.sh
3434
git add build_html.sh
3535
git commit -m "update build_html.sh script with new docker image"
3636
- name: Push changes to build scripts
3737
uses: ad-m/github-push-action@master
3838
with:
3939
github_token: ${{ secrets.GITHUB_TOKEN }}
40-
branch: 'dev'
40+
branch: 'main'

0 commit comments

Comments
 (0)