From 7071cf4fdaae03b89c837f6034dbac217dd81d72 Mon Sep 17 00:00:00 2001 From: Philip Meier Date: Mon, 5 Aug 2024 00:42:26 +0200 Subject: [PATCH] fix docker requirements update workflow (#474) Co-authored-by: Arjun Verma --- .github/ISSUE_TEMPLATE/DOCKER_ISSUE_TEMPLATE.md | 8 ++++---- .github/workflows/update-docker-requirements.yml | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/DOCKER_ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE/DOCKER_ISSUE_TEMPLATE.md index 1c66bd42..4b9a1b90 100644 --- a/.github/ISSUE_TEMPLATE/DOCKER_ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE/DOCKER_ISSUE_TEMPLATE.md @@ -1,9 +1,9 @@ --- -title: Workflow Failure: docker-requirements -labels: bug +title: "Workflow Failure: docker-requirements" +labels: "bug" --- The workflow 'docker-requirements' has failed. Please check the details at: [Workflow -Run Details](https://github.com/{{ repository }}/actions/runs/{{ run_id }}) +Run Details](https://github.com/{{ env.REPOSITORY }}/actions/runs/{{ env.RUN_ID }}) -Triggered by: {{ actor }} +Triggered by: @{{ actor }} diff --git a/.github/workflows/update-docker-requirements.yml b/.github/workflows/update-docker-requirements.yml index 45561837..05845144 100644 --- a/.github/workflows/update-docker-requirements.yml +++ b/.github/workflows/update-docker-requirements.yml @@ -8,7 +8,6 @@ on: - ".github/workflows/update-docker-requirements.yml" - "pyproject.toml" - "requirements-docker.lock" - workflow_dispatch: permissions: pull-requests: write @@ -48,7 +47,7 @@ jobs: - name: Check if commit is associated with a PR id: pr-check env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GH_TOKEN: ${{ github.token }} run: | PR_NUMBER=$(gh api \ -H 'Accept: application/vnd.github+json' \ @@ -85,6 +84,8 @@ jobs: if: failure() uses: JasonEtco/create-an-issue@v2 env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ github.token }} + REPOSITORY: ${{ github.repository }} + RUN_ID: ${{ github.run_id }} with: filename: .github/ISSUE_TEMPLATE/DOCKER_ISSUE_TEMPLATE.md