Questions tagged [github-actions-workflows]

11 questions
17
votes
1 answer

Github actions suddenly throwing "no version specified" for reusable workflows that worked yesterday

I'm not sure if this is a bug or a breaking change happened as of yesterday, I have a pretty simple setup calling three reusable workflows: name: pr-checks on: pull_request: branches: "**" jobs: lint: name: Call Lint uses:…
SebastianG
  • 8,563
  • 8
  • 47
  • 111
7
votes
1 answer

How to find out if the Github Actions event that triggered the current workflow is a new pull request?

I have a Github Actions workflow that fires on: on: pull_request: types: - synchronize - opened that runs my custom action: jobs: my_job: uses: "org/repo/.github/workflows/main.yml@master" In the action org/repo I want to…
gvlasov
  • 18,638
  • 21
  • 74
  • 110
3
votes
1 answer

How to determine if the GitHub action is running with `debug logging` enabled

I'm writing a Docker-based GitHub action in Python. I would like to add more verbosity to its output if at some point it fails and the user opts to rerun it with debug logging enabled. So my question is: is it possible to determine it from inside of…
1
vote
1 answer

pytest collects and passes tests locally, but 'collected 0 items' in GitHub Actions workflow (exit code 5)

I'm new to GitHub Actions workflows and encountering an issue with pytest. Locally, my tests are successfully collected and pass without any problems. However, when running the same tests in a GitHub Actions workflow, pytest fails to recognize any…
oriyalp
  • 21
  • 4
1
vote
0 answers

How to set up concurrency at the workflow level?

I have a workflow that is triggered on the following events: on: pull_request: types: - opened - synchronize pull_request_review: types: - submitted If there are two jobs in queue with the synchronized event…
1
vote
0 answers

Use Github Action to monitor page changes, success upload artifact today, but can't download it next day

I wrote a script to monitoring some pages' change daily. It scrapy the page daily, save the result to csv files, and next day compare to new scrapied data, calc the diff, then mailed to meself. The script works well on my VPS, now I'm trying to mig…
1
vote
1 answer

GitHub actions: env value in branches names (i.e. on push)

I need to run only on branches what ends with specified env variable. Let's pretend that we are on feat/project-name branch and this is may workflow.yml: env: PROJECT: project-name on: push: # only for branches what ends with given project…
pbaranski
  • 22,778
  • 19
  • 100
  • 117
1
vote
1 answer

Cannot access env vars in `with` of shared-workflow invocation?

I need to maintain a default that will be used for PRs and workflow_dispatch. Following is the pattern I'm trying to use, but I get an error when trying to access the env.var. How am I going wrong here and how else might I achieve the same…
0
votes
1 answer

How to call either one reusable workflow from caller workflow by using workflow_dispatch and passing parameter with filename

I have created two reusable workflow in abc repo javaci.yml databaseci.yml I can trigger reusable workflow from caller workflow simultaneously but I need to choose any one or both yml file to trigger by using parameter below are the my caller…
0
votes
1 answer

How can we attach a service account to cloud run service while deploying through github actions?

I am trying to deploy a cloud run service using github workflow, this cloud run service performs some gcp actions for which I want to bind a service account to the cloud run service while deploying the same. through gcloud cli we can achieve the…
0
votes
1 answer

Github actions: how to configure runner to use a specific image

My project currently fails on the windows-2022 runner. It's configured via a Github worfklow (excerpt): jobs: test: runs-on: windows-2022 I can see that the last successful run took place on the win22/20220529 image of the runner. I'd like to…