id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_21_0.txt | Part of CI/CD Collective
372 | |
github_using_workflows_jobs/251790_5_0.txt | * Security
Find and fix vulnerabilities | |
github_using_workflows_jobs/github-series-actions-workflow-dispatch0_7_0.txt | Here's an example of how you could use workflow dispatch to trigger a
deployment workflow on-demand:
* Define a ` workflow_dispatch ` event in your workflow file: | |
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_27_0.txt | aborilov aborilov
8,124 3 3 gold badges 21 21 silver badges 20 20 bronze badges | |
github_using_workflows_jobs/github_using_workflows_2_12.txt | Generate output
runs-on: ubuntu-latest
# Map the job outputs to step outputs
outputs:
output1: ${{ steps.step1.outputs.firstword }}
output2: ${{ steps.step2.outputs.secondword }}
steps:
- id: step1
run: echo "firstword=hello" >> $GITHUB_OUTPUT
... | |
github_using_workflows_jobs/251790_31_0.txt | # New GitHub Action not displayed on the Actions tab #25179
Answered by BrightRan | |
github_using_workflows_jobs/manually-running-a-workflow7_12_0.txt | * Manually run a workflow
* Disable & enable a workflow | |
github_using_workflows_jobs/manually-running-a-workflow7_104_0.txt | When a workflow is configured to run on the ` workflow_dispatch ` event, you
can run the workflow using the Actions tab on GitHub, GitHub CLI, or the REST
API.
## Tool navigation | |
github_using_workflows_jobs/251790_27_0.txt | Sign in
Sign up | |
github_using_workflows_jobs/251790_4_0.txt | * Packages
Host and manage packages | |
github_using_workflows_jobs/manually-running-a-workflow7_93_0.txt | * Security guides
* Security hardening | |
github_using_workflows_jobs/github_using_jobs_4_2.txt | nnect in AWS ](/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services)
* [ OpenID Connect in Azure ](/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-azure)
* [ OpenID Connect in Google Cloud Platform ](/en/acti... | |
github_using_workflows_jobs/manually-running-a-workflow7_92_0.txt | * Troubleshoot
* About Support for ARC | |
github_using_workflows_jobs/github_using_workflows_8_4.txt | * [ Control access to larger runners ](/en/actions/using-github-hosted-runners/about-larger-runners/controlling-access-to-larger-runners)
* [ Run jobs on larger runners ](/en/actions/using-github-hosted-runners/about-larger-runners/running-jobs-on-larger-runners)
* Private networking
* [ About pri... | |
github_using_workflows_jobs/github-series-actions-workflow-dispatch0_11_0.txt | To trigger the deployment workflow, you would navigate to the Actions tab in
your GitHub repository, select the ` Deploy to production ` workflow, and
enter the required ` environment ` input. Alternatively, you could use the
GitHub API to trigger the workflow to run programmatically.
Once triggered, the workflow woul... | |
github_using_workflows_jobs/github_using_workflows_8_2.txt | rdening-with-openid-connect)
* [ OpenID Connect in AWS ](/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services)
* [ OpenID Connect in Azure ](/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-azure)
* [ Ope... | |
github_using_workflows_jobs/github_using_workflows_12_11.txt | re are
no files changed, the workflow will not run.
GitHub generates the list of changed files using two-dot diffs for pushes and
three-dot diffs for pull requests:
* **Pull requests:** Three-dot diffs are a comparison between the most recent version of the topic branch and the commit where the topic branch was las... | |
github_using_workflows_jobs/251790_49_0.txt | ###
BrightRan | |
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_45_0.txt | Share
Improve this answer | |
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_77_0.txt | Follow
answered Mar 18 at 14:10 | |
github_using_workflows_jobs/github_using_workflows_4_6.txt | " [ About GitHub CLI ](/en/github-
cli/github-cli/about-github-cli) ."
To disable a workflow, use the ` workflow disable ` subcommand. Replace `
workflow ` with either the name, ID, or file name of the workflow you want to
disable. For example, ` "Link Checker" ` , ` 1234567 ` , or ` "link-check-
test.yml" ` . If you... | |
github_using_workflows_jobs/github_using_jobs_0_3.txt | orter-with-custom-transformers)
* [ Supplemental arguments and settings ](/en/actions/migrating-to-github-actions/automated-migrations/supplemental-arguments-and-settings)
* [ Azure DevOps migration ](/en/actions/migrating-to-github-actions/automated-migrations/migrating-from-azure-devops-with-github-acti... | |
github_using_workflows_jobs/github_using_jobs_9_5.txt | guides/using-githubs-security-features-to-secure-your-use-of-github-actions)
* [ Automatic token authentication ](/en/actions/security-guides/automatic-token-authentication)
* Creating actions
* [ About custom actions ](/en/actions/creating-actions/about-custom-actions)
* [ Create a Docker container ... | |
github_using_workflows_jobs/manually-running-a-workflow7_6_0.txt | * Expressions
* Contexts | |
github_using_workflows_jobs/manually-running-a-workflow7_2_0.txt | * GitHub Actions /
* Using workflows /
* Manually run a workflow
Home | |
github_using_workflows_jobs/manually-running-a-workflow7_82_0.txt | * Self-hosted runners
* Manage self-hosted runners | |
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_103_0.txt | 2
Github Action uses action on branch | |
github_using_workflows_jobs/github_using_workflows_7_5.txt | curity features ](/en/actions/security-guides/using-githubs-security-features-to-secure-your-use-of-github-actions)
* [ Automatic token authentication ](/en/actions/security-guides/automatic-token-authentication)
* Creating actions
* [ About custom actions ](/en/actions/creating-actions/about-custom-act... | |
github_using_workflows_jobs/github_using_workflows_5_42.txt | ]' ]
# Invalid - creates a parse error
branches: [ main, release/v[0-9].[0-9] ]
For more information about branch, tag, and path filter syntax, see " `
on.<push>.<branches|tags> ` ", " ` on.<pull_request>.<branches|tags> ` ", and
" ` on.<push|pull_request>.paths ` ."
### Patterns to match branch... | |
github_using_workflows_jobs/github_using_jobs_9_8.txt | configurations defined in the matrix, use `
jobs.<job_id>.strategy.matrix.exclude ` . An excluded configuration only has
to be a partial match for it to be excluded. For example, the following
workflow will run nine jobs: one job for each of the 12 configurations, minus
the one excluded job that matches ` {os: macos-la... | |
github_using_workflows_jobs/manually-running-a-workflow7_42_0.txt | * Deploy to Google Kubernetes Engine
* Security harden deployments | |
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_62_0.txt | Add a comment |
0 | |
github_using_workflows_jobs/github_using_jobs_3_2.txt | ID Connect in AWS ](/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services)
* [ OpenID Connect in Azure ](/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-azure)
* [ OpenID Connect in Google Cloud Platform ](/en... | |
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_64_0.txt | Share
Improve this answer | |
github_using_workflows_jobs/github_using_workflows_6_7.txt | for a specific commit. Check suites
summarize the status and conclusion of the check runs that are in the suite.
For information, see " [ Using the REST API to interact with checks
](/en/rest/guides/using-the-rest-api-to-interact-with-checks) ." For
information about the check suite APIs, see " [ Objects
](/en/graphql/... | |
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_20_0.txt | Modified 1 month ago
Viewed 367k times | |
github_using_workflows_jobs/251790_22_0.txt | # Provide feedback
We read every piece of feedback, and take your input very seriously. | |
github_using_workflows_jobs/github_using_workflows_5_25.txt | be any string or expression. Allowed expression contexts: [ ` github
` ](/en/actions/learn-github-actions/contexts#github-context) , [ ` inputs `
](/en/actions/learn-github-actions/contexts#inputs-context) , [ ` vars `
](/en/actions/learn-github-actions/contexts#vars-context) , [ ` needs `
](/en/actions/learn-github-a... | |
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_51_0.txt | Share
Improve this answer | |
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_95_0.txt | 3
How to display GitHub action badge for current running branch? | |
github_using_workflows_jobs/manually-running-a-workflow7_11_0.txt | * About workflows
* Trigger a workflow | |
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_18_0.txt | Learn more about Labs
# How to get the current branch within Github Actions? | |
github_using_workflows_jobs/manually-running-a-workflow7_88_0.txt | * Monitor & troubleshoot
* Remove self-hosted runners | |
github_using_workflows_jobs/251790_84_0.txt | # {{title}}
Something went wrong. | |
github_using_workflows_jobs/github-series-actions-workflow-dispatch0_4_0.txt | · Mar 11, 2023 ·
2 min read | |
github_using_workflows_jobs/251790_95_0.txt | 1 You must be logged in to vote
All reactions | |
github_using_workflows_jobs/manually-running-a-workflow7_9_0.txt | * Use scripts to test your code on a runner
* Use the GitHub CLI on a runner | |
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_55_0.txt | I have had to do this several different times for events that run on the PR
sync event and then on push to main (e.g. building tagged container images)
and I don't particularly like:
1. Using 3rd party actions on private repos.
2. Using the expression syntax as I find it to be a rather poor development experience... | |
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_102_0.txt | 20
How to get a branch name on GitHub action when push on a tag? | |
github_using_workflows_jobs/manually-running-a-workflow7_71_0.txt | * Add a status badge
* Workflow run history | |
github_using_workflows_jobs/251790_99_0.txt | ###
GuillaumeCleme | |
github_using_workflows_jobs/manually-running-a-workflow7_53_0.txt | * Create Redis service containers
* Publish packages | |
github_using_workflows_jobs/251790_75_0.txt | Comment options
* | |
github_using_workflows_jobs/251790_79_0.txt | Author
\- | |
github_using_workflows_jobs/github_using_workflows_10_5.txt | tions/security-guides/using-secrets-in-github-actions)
* [ GitHub security features ](/en/actions/security-guides/using-githubs-security-features-to-secure-your-use-of-github-actions)
* [ Automatic token authentication ](/en/actions/security-guides/automatic-token-authentication)
* Creating actions
*... | |
github_using_workflows_jobs/github_using_workflows_3_9.txt | Diagram showing the trigger, runner, and job of a workflow. The job is
broken into 4 steps.](/assets/cb-62091/images/help/actions/overview-actions-
event.png)
## Viewing the activity for a workflow run
When your workflow is triggered, a _workflow run_ is created that executes the
workflow. After a workflow run has s... | |
github_using_workflows_jobs/manually-running-a-workflow7_103_0.txt | * GitHub Actions /
* Using workflows /
* Manually run a workflow
# Manually running a workflow | |
github_using_workflows_jobs/github_using_jobs_7_6.txt | the same name, GitHub uses
the most specific default setting. For example, a default setting defined in a
job will override a default setting that has the same name defined in a
workflow.
## Setting default shell and working directory for a job
Use ` jobs.<job_id>.defaults.run ` to provide default ` shell ` and ` w... | |
github_using_workflows_jobs/github_using_workflows_6_6.txt | vity types using the ` types `
keyword. For more information, see " [ Workflow syntax for GitHub Actions
](/en/actions/using-workflows/workflow-syntax-for-github-
actions#onevent_nametypes) ."
**Note:** This event will only trigger a workflow run if the workflow file is
on the default branch.
Runs your workflow when ... | |
github_using_workflows_jobs/251790_77_0.txt | Quote reply
### | |
github_using_workflows_jobs/github_using_jobs_9_1.txt | n/actions/managing-workflow-runs/approving-workflow-runs-from-private-forks)
* [ Review deployments ](/en/actions/managing-workflow-runs/reviewing-deployments)
* [ Skip workflow runs ](/en/actions/managing-workflow-runs/skipping-workflow-runs)
* [ Delete a workflow run ](/en/actions/managing-workflow-run... | |
github_using_workflows_jobs/251790_2_0.txt | community
* Product | |
github_using_workflows_jobs/251790_62_0.txt | Something went wrong.
Quote reply | |
github_using_workflows_jobs/manually-running-a-workflow7_45_0.txt | * OpenID Connect in HashiCorp Vault
* OpenID Connect in cloud providers | |
github_using_workflows_jobs/manually-running-a-workflow7_36_0.txt | * Deploy with GitHub Actions
* Deploy to your cloud provider | |
github_using_workflows_jobs/github_using_workflows_2_2.txt | nect in AWS ](/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services)
* [ OpenID Connect in Azure ](/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-azure)
* [ OpenID Connect in Google Cloud Platform ](/en/actio... | |
github_using_workflows_jobs/github_using_workflows_4_4.txt | rol access to larger runners ](/en/actions/using-github-hosted-runners/about-larger-runners/controlling-access-to-larger-runners)
* [ Run jobs on larger runners ](/en/actions/using-github-hosted-runners/about-larger-runners/running-jobs-on-larger-runners)
* Private networking
* [ About private netw... | |
github_using_workflows_jobs/github_using_workflows_12_3.txt | igrations/extending-github-actions-importer-with-custom-transformers)
* [ Supplemental arguments and settings ](/en/actions/migrating-to-github-actions/automated-migrations/supplemental-arguments-and-settings)
* [ Azure DevOps migration ](/en/actions/migrating-to-github-actions/automated-migrations/migrat... | |
github_using_workflows_jobs/manually-running-a-workflow7_24_0.txt | * Cancel a workflow
* Approve public fork runs | |
github_using_workflows_jobs/251790_56_0.txt | Something went wrong.
Quote reply | |
github_using_workflows_jobs/github_using_workflows_0_8.txt | cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-... | |
github_using_workflows_jobs/github_using_workflows_1_3.txt | s/automated-migrations/extending-github-actions-importer-with-custom-transformers)
* [ Supplemental arguments and settings ](/en/actions/migrating-to-github-actions/automated-migrations/supplemental-arguments-and-settings)
* [ Azure DevOps migration ](/en/actions/migrating-to-github-actions/automated-migr... | |
github_using_workflows_jobs/github_using_jobs_9_9.txt | log ](https://github.blog)
| |
github_using_workflows_jobs/251790_9_0.txt | * Issues
Plan and track work | |
github_using_workflows_jobs/github_using_workflows_8_0.txt | Skip to main content
[ GitHub Docs ](/en)
Version: Free, Pro, & Team
Search GitHub Docs
* [ GitHub Actions ](/en/actions "GitHub Actions") /
* [ Using workflows ](/en/actions/using-workflows "Using workflows") /
* [ Create starter workflows ](/en/actions/using-workflows/creating-starter-workflows-for-your... | |
github_using_workflows_jobs/github_using_workflows_5_14.txt | ${{ inputs.tags }}
## ` on.workflow_dispatch.inputs.<input_id>.required `
A boolean specifying whether the input must be supplied.
## ` on.workflow_dispatch.inputs.<input_id>.type `
The value of this parameter is a string specifying the data type of the input.
This must be one of: ` boolean ` , ` choice ` ,... | |
github_using_workflows_jobs/github_using_workflows_12_14.txt | and deployment protection rules are
available in public repositories for all current GitHub plans. They are not
available on legacy plans, such as Bronze, Silver, or Gold. For access to
environments, environment secrets, and deployment branches in private or
internal repositories, you must use GitHub Pro, GitHub Team,... | |
github_using_workflows_jobs/251790_101_0.txt | \-
@brightran correct. What was confusing is that pushing a tag also shows up as
a release in the UI.
---
Beta Was this translation helpful? Give feedback. | |
github_using_workflows_jobs/251790_46_0.txt | * Oldest
* Newest
* Top
Comment options | |
github_using_workflows_jobs/github_using_jobs_0_8.txt | thub.blog)
| |
github_using_workflows_jobs/github_using_workflows_5_30.txt | s or cause unexpected behavior when the action
owner publishes an update.
* Using the commit SHA of a released action version is the safest for stability and security.
* If the action publishes major version tags, you should expect to receive critical fixes and security patches while still retaining compatibility... | |
github_using_workflows_jobs/github_using_workflows_7_1.txt |
* [ Approve private fork runs ](/en/actions/managing-workflow-runs/approving-workflow-runs-from-private-forks)
* [ Review deployments ](/en/actions/managing-workflow-runs/reviewing-deployments)
* [ Skip workflow runs ](/en/actions/managing-workflow-runs/skipping-workflow-runs)
* [ Delete a workflow ... | |
github_using_workflows_jobs/github_using_workflows_5_32.txt | ` bash ` is specified explicitly. If ` bash ` is not found in the path, this is treated as ` sh ` . | ` bash -e {0} `
All | ` bash ` | The default shell on non-Windows platforms with a fallback to ` sh ` . When specifying a bash shell on Windows, the bash shell included with Git for Windows is used. | ` bash -... | |
github_using_workflows_jobs/github_using_workflows_5_11.txt | ocs/readme.md ` will not.
on:
push:
paths:
- 'sub-project/**'
- '!sub-project/docs/**'
#### Git diff comparisons
**Note:** If you push more than 1,000 commits, or if GitHub does not generate
the diff due to a timeout, the workflow will always run.
The filter det... | |
github_using_workflows_jobs/github_using_workflows_5_13.txt | can specify what branches the
triggering workflow must run on in order to trigger your workflow.
The ` branches ` and ` branches-ignore ` filters accept glob patterns that use
characters like ` * ` , ` ** ` , ` + ` , ` ? ` , ` ! ` and others to match
more than one branch name. If a name contains any of these characte... | |
github_using_workflows_jobs/github_using_workflows_0_10.txt | cache list, you can see how much disk space each cache is
using, when the cache was created, and when the cache was last used.
1. On GitHub.com, navigate to the main page of the repository.
2. Under your repository name, click **Actions** .

* Private networking
* [ About private networking ](/en/actions/using-github-hoste... | |
github_using_workflows_jobs/github_using_workflows_1_15.txt | in sentence for the list" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY # this is a blank line
echo "- Lets add a bullet point" >> $GITHUB_STEP_SUMMARY
echo "- Lets add a second bullet point" >> $GITHUB_STEP_SUMMARY
echo "- How about a third one?" >> $GITHUB_STEP_SUMMARY
... | |
github_using_workflows_jobs/github_using_workflows_8_1.txt | workflow-runs-from-public-forks)
* [ Approve private fork runs ](/en/actions/managing-workflow-runs/approving-workflow-runs-from-private-forks)
* [ Review deployments ](/en/actions/managing-workflow-runs/reviewing-deployments)
* [ Skip workflow runs ](/en/actions/managing-workflow-runs/skipping-workflow-... | |
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_33_0.txt | Aug 23, 2021 at 17:53
* 17 | |
github_using_workflows_jobs/manually-running-a-workflow7_117_0.txt |
echo '{"name":"mona", "greeting":"hello"}' | gh workflow run greet.yml --json
To run a workflow on a branch other than the repository's default branch, use
the ` --ref ` flag. | |
github_using_workflows_jobs/251790_71_0.txt | Something went wrong.
Quote reply | |
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_98_0.txt | 112
Getting current branch and commit hash in GitHub action | |
github_using_workflows_jobs/github_using_workflows_2_9.txt | l-repo:
uses: octo-org/this-repo/.github/workflows/workflow-1.yml@172239021f7ba04fe7327647b213799853a9eb89
call-workflow-2-in-local-repo:
uses: ./.github/workflows/workflow-2.yml
call-workflow-in-another-repo:
uses: octo-org/another-repo/.github/workflows/workflow.yml@v1
### P... | |
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_3_0.txt | * Stack Overflow
help chat | |
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_96_0.txt | 3
How to trigger GitHub actions on push of current branch? | |
github_using_workflows_jobs/github_using_jobs_8_7.txt | ersion:
runs-on:
group: ubuntu-runners
labels: ubuntu-20.04-16core
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '14'
- run: npm install -g bats
- run: bats -v
## Help and ... | |
github_using_workflows_jobs/github_using_workflows_12_10.txt | valuated for pushes of tags.
Use the ` paths ` filter when you want to include file path patterns or when
you want to both include and exclude file path patterns. Use the ` paths-
ignore ` filter when you only want to exclude file path patterns. You cannot
use both the ` paths ` and ` paths-ignore ` filters for the sa... | |
github_using_workflows_jobs/251790_51_0.txt | @guillaumecleme , I checked your repository and the releases you have
created, and I found few questions: 1) The workflow YAML file "
mvndeploy.yml " is only located on the develop branch. 2) All the
releases you have created are from the master branch. Here are few points
need you pay attention to: 1) Af... | |
github_using_workflows_jobs/github_using_jobs_8_0.txt | Skip to main content
[ GitHub Docs ](/en)
Version: Free, Pro, & Team
Search GitHub Docs
* [ GitHub Actions ](/en/actions "GitHub Actions") /
* [ Using jobs ](/en/actions/using-jobs "Using jobs") /
* [ Choose the runner for a job ](/en/actions/using-jobs/choosing-the-runner-for-a-job "Choose the runner for... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.