Skip to content

Fix github.repository in release.yml (#1597) #157

Fix github.repository in release.yml (#1597)

Fix github.repository in release.yml (#1597) #157

Workflow file for this run

name: Publish Docker image and binaries
on:
push:
tags:
- 'v*'
jobs:
buildDockerImage:

Check failure on line 9 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Publish Docker image and binaries

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 9, Col: 3): The workflow must contain at least one job with no dependencies.
name: Publish release artefacts
runs-on: ubuntu-latest
needs: [build, verify]
if: |
(github.repository == 'prometheus-community/yet-another-cloudwatch-exporter')
&&
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v.'))
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: prometheus/promci@52c7012f5f0070d7281b8db4a119e21341d43c91 # v0.4.5
- uses: ./.github/promci/actions/publish_release
with:
docker_hub_login: ${{ secrets.docker_hub_login }}
docker_hub_password: ${{ secrets.docker_hub_password }}
quay_io_login: ${{ secrets.quay_io_login }}
quay_io_password: ${{ secrets.quay_io_password }}
github_token: ${{ secrets.PROMBOT_GITHUB_TOKEN }}