Skip to content

Commit

Permalink
Add Utah HC team name
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmaJonse committed Oct 9, 2024
1 parent 9d9e90b commit cd5edbe
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Create env file
run: |
Expand All @@ -22,9 +22,9 @@ jobs:
echo ACCESS_TOKEN_SECRET=${{ secrets.ACCESS_TOKEN_SECRET }} >> config/.env
- name: Install Python 3
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: "3.12"

- name: Install dependencies
run: |
Expand All @@ -43,12 +43,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Python 3
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: "3.12"

- name: Install dependencies
run: |
Expand All @@ -62,12 +62,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Python 3
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: "3.12"

- name: Install dependencies
run: |
Expand All @@ -82,24 +82,23 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: 'Checkout GitHub Action'
uses: actions/checkout@main
- uses: actions/checkout@v4

- name: Create env file
run: |
mkdir config
touch config/.env
echo BEARER_TOKEN=${{ secrets.BEARER_TOKEN }} >> config/.env
echo CONSUMER_KEY=${{ secrets.CONSUMER_KEY }} >> config/.env
echo CONSUMER_SECRET=${{ secrets.CONSUMER_SECRET }} >> config/.env
echo ACCESS_TOKEN=${{ secrets.ACCESS_TOKEN }} >> config/.env
echo ACCESS_TOKEN_SECRET=${{ secrets.ACCESS_TOKEN_SECRET }} >> config/.env
echo "BEARER_TOKEN=${{ secrets.BEARER_TOKEN }}" >> config/.env
echo "CONSUMER_KEY=${{ secrets.CONSUMER_KEY }}" >> config/.env
echo "CONSUMER_SECRET=${{ secrets.CONSUMER_SECRET }}" >> config/.env
echo "ACCESS_TOKEN=${{ secrets.ACCESS_TOKEN }}" >> config/.env
echo "ACCESS_TOKEN_SECRET=${{ secrets.ACCESS_TOKEN_SECRET }}" >> config/.env
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Log in to GitHub container registry
uses: docker/login-action@v1.10.0
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -109,7 +108,7 @@ jobs:
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}

- name: Build and push container image to registry
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
push: true
tags: ghcr.io/${{ env.REPO }}:${{ github.sha }}
Expand All @@ -121,7 +120,7 @@ jobs:
if: github.ref == 'refs/heads/main'

steps:
- uses: actions/checkout@main
- uses: actions/checkout@v5
with:
lfs: 'true'

Expand Down
4 changes: 2 additions & 2 deletions src/data/abbreviations.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

abbreviation_to_location = {
"ANA": "Anaheim",
"ARI": "Arizona",
"BOS": "Boston",
"BUF": "Buffalo",
"CGY": "Calgary",
Expand All @@ -31,6 +30,7 @@
"STL": "St. Louis",
"TBL": "Tampa Bay",
"TOR": "Toronto",
"UTA": "Utah",
"VAN": "Vancouver",
"VGK": "Vegas",
"WSH": "Washington",
Expand All @@ -39,7 +39,6 @@

location_to_abbreviation = {
"Anaheim": "ANA",
"Arizona": "ARI",
"Boston": "BOS",
"Buffalo": "BUF",
"Calgary": "CGY",
Expand All @@ -66,6 +65,7 @@
"St. Louis": "STL",
"Tampa Bay": "TBL",
"Toronto": "TOR",
"Utah": "UTA",
"Vancouver": "VAN",
"Vegas": "VGK",
"Washington": "WSH",
Expand Down

0 comments on commit cd5edbe

Please sign in to comment.