Is there any way to determine in a workflow if the job that waited for approval was manually rejected? I know that manually rejected jobs now have the failure status, but it's not an error in job execution, it's an expected behavior if I manually reject it (for example I reject a job for deployment to the production environment). And if I need to send the Slack notification as a last job in case of any failure in the job using if: ${{ failure() }} condition, it also sends a notification when one of the previous jobs was manually rejected.
How to check if the job was rejected in GitHub actions workflow?
253 views Asked by excelsiorious At
1
There are 1 answers
Related Questions in GITHUB
- How to update to the latest external Git in Azure Web App?
- Github Pages Deployment deploys a blank page
- Git Not In Sync with Local Branch
- How do I create a test passing badge for my yaml below
- Cant connect to any github repository from my netbeans 20
- How can i redirect pull request from main branch to another branch
- Trying to update the version.go file with the release tag from GitHub actions but its failing
- Encountering Errors Running GitHub Project: Wavelet-pixel domain progressive fusion network for underwater image enhancement - Seeking Assistance
- How can I reintroduce username an password on git using fedora?
- How do I find Github File_ID?
- Forking vs Cloning in GitHub
- I can't find ~/.profile or ~/.bashrc in C:/Users/<user>/.ssh folder
- how to build nextjs app unable to build and deploy
- Plugin with id 'com.android.application' not found in Github Winlator Project
- Git commit asks for passphrase which I don't remember
Related Questions in CONTINUOUS-INTEGRATION
- Cannot connect to Postgres Database when running Quarkus Tests with Gitlab ci
- Android SafeArgs gives error with GitHub actions
- Display coverage report on browser
- How to set variables across several Earthfiles with earthly for continuous integration
- Getting " Unauthorized Access" error in Git Actions(CI) when trying to run Fastlane(CD)
- Cost saving recommendations and best practices for Azure
- NodeJS application deployment on Digital Ocean using Github Actions
- Getting CI/CD error on biulding step in React Azure Pipeline
- gitlab ci: 'compose' is not a docker command
- I'm in Playwright, how do I run specific test cases by tag in (CI) execution
- Incorrect java version on Jenkins agent
- Azure YAML Pipeline schedule to run on the last Sunday of the month at 4 AM
- how to provide custom variables in gitlab api?
- How to build an artifact from a given branch in azure pipelines?
- CI testing with platformio with one build
Related Questions in GITHUB-ACTIONS
- How do I create a test passing badge for my yaml below
- Driver com.microsoft.sqlserver.jdbc.SQLServerDriver claims to not accept jdbcUrl, ${SPRING_DATASOURCE_URL}: GitHub Actions
- Trying to update the version.go file with the release tag from GitHub actions but its failing
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Gradle SAXParseException cvc-complex-type.2.4.a
- Unable to deploy to GAE from Github Actions
- Set environment variable during push for GitHub Actions
- Error: P1001: Can't reach database server at `db`:`5432` on github actions
- Android SafeArgs gives error with GitHub actions
- How to restore nuget from private github feed using Github App and no PAT?
- Github Actions/variable-mapper : Error: Unexpected token *** in JSON
- Github action Post Run fails workflow
- How to push multiple changes from matrix in Github Actions
- Display coverage report on browser
- Unable to use env variable from prd environment context
Related Questions in CONTINUOUS-DEPLOYMENT
- Canary deployment using spinnaker in AWS ECS
- Azure YAML Pipeline schedule to run on the last Sunday of the month at 4 AM
- Suggestions for Deploying Document-QA system using LLaMa-2 model
- How to build an artifact from a given branch in azure pipelines?
- Cannot deploy Azure data factory SSIS Integration Runtime using CD release pipeline in AzureDevOps
- Not authorized. Please check the user token in the property 'sonar.token' or the credential
- Table gets promoted with no data to Prod for Azure SQL database through Azure DevOps
- When running task deployment on AWS ECS the error return "Essential container in task exited"
- Expected Syntax error while writing groovy code
- tput: No value for $TERM and no -T specified : Causes Deployment Failure
- Azure CD with publish profile
- How to achieve rolling update with pm2?
- How I can define the location of the deployed app in AwsCodeploy based upon environment?
- How do I get the Onedev Kubernetes Executor working in a microk8s helm deployment?
- Application Error during deployment to an Azure Function Slot
Related Questions in CONTINUOUS-DELIVERY
- Cost saving recommendations and best practices for Azure
- Combining Container, AMI, and ECS builds/deployments in CDK?
- Azure WebJobs CD ereasing wwwroot content
- How I can deploy my nodejs project on EC2?
- How to check if the job was rejected in GitHub actions workflow?
- Tearing-Down a development deployment in Jenkins
- Automatically create tag after PR based on new version string discovered in source code
- Testing in CI vs testing in CD
- Automatic deployment of Docker image as last step of CI/CD pipeline
- Change the ArgoCD login and navbar icon
- How to cache Poetry virtual environments in GitLab CI/CD?
- When should you update release notes/changelogs?
- Jenkins pipeline Boolean parameter default value cannot set dynamically thruogh jenkins shared lib
- Git CI/CD job depending on merged branch
- Unable to authorize Azure-Devops agent pool, received as a variable
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
A solution-workaround has been found for this problem. It's possible to differentiate a really failed job from the rejected one via setting an output parameter for the job that require manual approval/rejection and use it afterwards in the downstream job where we want to check if there's a real failure in workflow or a job rejection performed manually.
This configuration works well, but it will not cover the following case: if the job that requires manual approval was approved and then failed during the execution, if we re-run it and reject it, it will be treated as failed job. It’s only relevant for re-running particularly this job via clicking the circle with arrows or via “Re-run failed jobs” option. For “Re-run all jobs” option everything works well in this case.