Comments (5)
Thanks report, same problem happened in my workflow, I suppose that's a github api issue, but there is also a quick fix way, I'll change the default workflow later.
from actionsflow.
Hi, @zhouzhuojie , Can you try with the latest script? I have pushed it. Just changed these lines.
from actionsflow.
Thanks report, same problem happened in my workflow, I suppose that's a github api issue, but there is also a quick fix way, I'll change the default workflow later.
Yes, I think that may work (sorry didn't try yet), and it definitely depends on github's pagination and its implicit ordering, and it might not be efficient to query all the runs as it may return a list of all the previous workflows before.
I fixed mine with concurrency
like:
concurrency:
group: actionsflow
jobs:
run:
runs-on: ubuntu-latest
name: Run
steps:
- uses: actions/checkout@v2
- name: Run Actionsflow
uses: actionsflow/actionsflow-action@v1
with:
args: "build --include ${{ github.event.inputs.include || ''}} -f ${{github.event.inputs.force=='true' && 'true' || 'false'}} --verbose ${{github.event.inputs.verbose=='true' && 'true' || 'false'}}"
json-secrets: ${{ toJSON(secrets) }}
json-github: ${{ toJSON(github) }}
- name: Setup act
uses: actionsflow/setup-act-for-actionsflow@v1
- name: Run act
run: act --workflows ./dist/workflows --secret-file ./dist/.secrets --eventpath ./dist/event.json --env-file ./dist/.env -P ubuntu-latest=actionsflow/act-environment:v1 -P ubuntu-18.04=actionsflow/act-environment:v1
cancel-in-progress: true
is optional if we just want the new run to be pending.
from actionsflow.
@zhouzhuojie Thanks the information! I don't know this concurrency
config option before, and yes, it's a perfect way to solve concurrency problem, I'll use it as the default solution!
Thanks again!
from actionsflow.
Done. close #28
from actionsflow.
Related Issues (20)
- Create a Video Tutorial HOT 2
- Slack link in docs is a dead link. HOT 1
- step id can not end with "on" HOT 1
- Slack invite link incorrect HOT 1
- Should formatting run before `getItemKey`? HOT 3
- Compatibility layer for Pipedream HOT 1
- Heroku HOT 1
- Cached when failed. HOT 1
- Need a community HOT 2
- Does Current Email Trigger supports Oauth2 Authentication HOT 1
- Example doesn't start chromium with puppeteer in docker HOT 16
- Change the Port HOT 1
- Webhook Worker May Log GH Personal Access Key HOT 3
- Run act step in GitHub action gives an error HOT 2
- Webhook triggered on every scheduled run on a self-hosted instance HOT 4
- Can't separate key from value HOT 2
- reference more awesome github actions list HOT 1
- Node version of runner on self-hosted Docker install HOT 1
- Docker Compose HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actionsflow.