Update ci.yml

Corrected head branch reference
This commit is contained in:
Etienne G
2023-02-15 00:41:23 +11:00
committed by GitHub
parent 0a7fe3ed8b
commit ef275a9528
+2 -2
View File
@@ -26,7 +26,7 @@ jobs:
echo "ADDON_LIST=['grott', 'grott-current']" >> $GITHUB_ENV
echo "DOCKER_ARGS=--no-latest --test" >> $GITHUB_ENV
- name: "ARGS: grott-edge" # Build of addon edge version
if: github.ref == 'refs/heads/master' && (github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.type == 'edge'))
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.type == 'edge'))
run: |
echo "ADDON_LIST=['grott-edge']" >> $GITHUB_ENV
echo "DOCKER_ARGS=--no-cache" >> $GITHUB_ENV
@@ -54,7 +54,7 @@ jobs:
- uses: actions/checkout@v3
- name: Login to docker
uses: docker/login-action@v2
if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}