Skip to content

Commit

Permalink
Switch website to main branch instead of master
Browse files Browse the repository at this point in the history
  • Loading branch information
EricWittmann committed Aug 23, 2022
1 parent 63b505e commit 22a6828
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/update-website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
update-website:
if: github.repository_owner == 'Apicurio'
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Configure Git
run: |
Expand All @@ -20,7 +20,7 @@ jobs:
repository: Apicurio/apicurio.github.io
path: website
token: ${{ secrets.ACCESS_TOKEN }}

- name: Fetch required Details
run: echo "RELEASE_VERSION=$(curl https://api.github.com/repos/${GITHUB_REPOSITORY}/releases | jq -r '.tag_name')" >> $GITHUB_ENV

Expand All @@ -31,7 +31,7 @@ jobs:
cd _data/studio
rm latestRelease.json
touch latestRelease.json && curl https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/latest > latestRelease.json
echo "********** Saving a copy in the archive **********"
cp latestRelease.json releases/${RELEASE_VERSION}.json
Expand All @@ -40,7 +40,7 @@ jobs:
cd website
git add .
git commit -m "Automated Update For Apicurio Studio Release Version: ${{ env.RELEASE_VERSION }}"
git push origin master
git push origin main
- name: Google Chat Notification
if: ${{ failure() }}
Expand Down

0 comments on commit 22a6828

Please sign in to comment.