Skip to content

fix action

fix action #5

name: 'Build and deploy app :)'
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.100'
- name: build
uses: ./.github/actions/build-app/
with:
build-number: ${{github.run_number}}
- name: publish artifacts
run: dotnet publish --no-restore --no-build --configuration Release --output artifacts/backend src/devschool-ci-test.csproj
- name: Run unit tests
run: dotnet test
notify:
name: notifications
runs-on: ubuntu-latest
needs: build
if: always()
steps:
- name: Checkout
uses: actions/checkout@v4
- name: notify
uses: ./.github/actions/notify-action/
secrets: inherit

Check failure on line 32 in .github/workflows/build-something.yml

View workflow run for this annotation

GitHub Actions / Build and deploy app :)

Invalid workflow file

The workflow is not valid. .github/workflows/build-something.yml (Line: 32, Col: 9): Unexpected value 'secrets'
with:
build-result: ${{ needs.build.result }}
# - name: Login to GitHub container registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: selfdeceited
# password: ${{ secrets.GHCR_PUBLISH_TOKEN }}
# - name: Build and push image
# uses: docker/build-push-action@v5
# with:
# file: ./artifacts/backend/Dockerfile
# github-token: ${{ secrets.GHCR_PUBLISH_TOKEN }}
# push: true
# context: .
# tags: ghcr.io/selfdeceited/devschool-ci-test:${{ github.run_number }}-post
# build-args: |
# "GH_BUILD_NUMBER=${{ github.run_number }}"
# deploy:
# needs: [build]
# if: ${{ github.ref == 'refs/heads/main' }}
# uses: ./.github/workflows/deploy-app.yml
# with:
# image_number: ${{ github.run_number }}
# secrets: inherit