continuous deployment – Trouble trying to run queued Github Actions
continuous deployment – Trouble trying to run queued Github Actions
I see here the following solutions:
- You can sleep your dependant workflow to simulate a waiting for
1st workflow. wait-action might help
you with that. - You can try to trigger second action from the first action (instead of trigger it on
push
).
But all these options tbh are more like hacks. GitHub Actions are designed to run in parallel and if you want to run actions in specific order you should consider to use jobs instead and use needs
property to make a dependency between them. Example:
jobs:
job1:
name: Run 1st job
job2:
name: Run 2nd job
needs: job1
Documentation – needs
You can use concurrency.
name: CI
on:
pull_request:
branches: [main]
concurrency: ci
jobs:
continuous deployment – Trouble trying to run queued Github Actions
Related Posts
- path – How can I troubleshoot Python Could not find platform independent libraries
- How to troubleshoot an AttributeError: __exit__ in multiproccesing in Python?
- python 3.x – Google Protocol Buffers (protobuf) in Python3 – trouble with ParseFromString (encoding?)
- PiCamera and continuous_capture with python and raspberry pi
- Trouble with java vlcj 1.2.2 RTSP client example (Mac OSX 10.6)