Comments (9)
Apparently we can get all of the vars like this :
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
https://github.community/t/how-to-find-the-default-variables-for-each-github-action-variable/17162/2
from ecosystem.
- https://github.com/qiskit-community/ecosystem/settings/actions
- https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-specific-actions-to-run
from ecosystem.
@mickahell Do you have a pattern for restrict only authors and admins to trigger action?
from ecosystem.
@mickahell Do you have a pattern for restrict only authors and admins to trigger action?
For the triggering part I don't know it seems to depend of the setting of the repo
BUT to avoid having lot of same actions with for the same issue in the same time we can use :
concurrency: ci-${{ github.event.issue.title }}
cancel-in-progress: true
That's way cancel previous action from the same issue
from ecosystem.
@IceKhan13 did you see my response ?
from ecosystem.
We do not have a problem that same issue will be triggered, we have a problem that anyone can trigger them =(
I think we can handle this in actions itself, something like
if: ${{github.event.user == github.event.issue.author}} || ${{github.event.user._is_contributor}}
Something like this :)
from ecosystem.
We will discuss it on tomorrows sync and I'll post here solution we will come up with for transparency
from ecosystem.
We do not have a problem that same issue will be triggered, we have a problem that anyone can trigger them =(
I think we can handle this in actions itself, something like
if: ${{github.event.user == github.event.issue.author}} || ${{github.event.user._is_contributor}}Something like this :)
I guess it has a var for _is_contributor
but I don't find any :/
from ecosystem.
Something like that
if: ${{github.event.issue.user.type == "Author"}} || ${{github.event.issue.user.type == "Contributor"}} || ${{github.event.issue.user.type == "Admin"}}
from ecosystem.
Related Issues (20)
- [Submission]: QoptKIT library to simulate and compile quantum optical circuits in QISKIT.
- Use rem instead of px in the ecosystem website
- [Submission]: qMuVi - An open-source quantum Music Video tool HOT 3
- [Submission]: SQuADDS v0.20 HOT 1
- [Submission]: Qiskit Metal Docker
- Single source of truth for repository model HOT 2
- Better separation of data and python logic
- Use tempfile for testing
- [Submission]: Test submission
- [Submission]: dynacir, a transpiler plugin for dynamic circuits HOT 1
- [Submission]: qiskit-sat-synthesis HOT 1
- [Submission]: ffsim HOT 1
- [Submission]: POVM Toolbox HOT 1
- Bump requirements
- [Submission]: Scaleway provider for Qiskit HOT 1
- [Submission]: qiskit-nature-cp2k HOT 1
- [Submission]: caml_qiskit HOT 1
- [Project update]: Quantum Serverless to Qiskit Serverless
- [Submission]: Quantum-MasterChef HOT 1
- [Submission]: Exploring Dynamic Circuits through Gibbs Free Energy Calculations and Error Mitigation HOT 4
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 ecosystem.