Comments (3)
You can use github
context for such purpose. Example:
jobs:
build:
name: Build
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- if: ${{ github.actor == "MickeyMouse" }}
run: ./runMickeyScripts.sh
- if: ${{ github.actor != "MickeyMouse" }}
run: ./runNotMickeyScripts.sh
Resource:
https://help.github.com/en/actions/reference/contexts-and-expression-syntax-for-github-actions
from awesome-actions.
Just a slight change. The IF statement is after the desired 'run' command.
The below code is working as intended.
jobs:
main:
name: WhoCommit
runs-on: ubuntu-latest
steps:
- run: echo Committed by ${{github.actor}}
- run: echo Is MickeyMouse
if: github.actor == 'MickeyMouse'
- run: echo Is Not MickeyMouse
if: github.actor != 'MickeyMouse'
from awesome-actions.
This seems resolved, also this repo isn't really intended to be documentation but rather house documentation links. Thanks @fabasoad for answering and @RaviRamDhali for the clarification.
from awesome-actions.
Related Issues (20)
- Should reviewdog commands remain in this repository?
- Category proposal : Docker Hub action
- Request: Action that provides commit suggestions on PRs based on linting HOT 1
- Pull Request Stuck Notifier link is dead HOT 1
- Fix awesome lint HOT 3
- No activity on pull requests HOT 2
- AWS actions section HOT 3
- Annotation command previewer
- Add Github Super Linter HOT 1
- Demonstration workflow that compiles a react APK and tests it on browserstack
- Section on scraping
- Show github stars badge next to the action link
- Linter is broken HOT 1
- create-release has been archived
- remove deprecated setup-ruby action
- Show user count badge for each action
- Help manage the repo HOT 7
- CI/CD
- a practical first steps error free way of testing python code e.g. from repos online in the browser
- Add an Expo e-commerce complete project
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 awesome-actions.