id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
github_using_workflows_jobs/github_using_jobs_1_6.txt
docs are open source. See something that's wrong or unclear? Submit a pull request. [ Make a contribution ](https://github.com/github/docs/blob/main/content/actions/using- jobs/defining-outputs-for-jobs.md) [ Learn how to contribute ](/contributing) ### Still need help? [ Ask the GitHub community ](https://github...
github_using_workflows_jobs/github_using_workflows_1_1.txt
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-runs) * [ Delete a wor...
github_using_workflows_jobs/251790_18_0.txt
Repositories * Topics * Trending * Collections
github_using_workflows_jobs/github_using_workflows_5_22.txt
jobs: job1: job2: needs: job1 job3: if: ${{ always() }} needs: [job1, job2] In this example, ` job3 ` uses the ` always() ` conditional expression so that it always runs after ` job1 ` and ` job2 ` have completed, regardless of whether they were successful. Fo...
github_using_workflows_jobs/github_using_workflows_6_18.txt
naging-your-repositorys-settings-and- features/enabling-features-for-your-repository/managing-github-actions- settings-for-a-repository#enabling-workflows-for-forks-of-private- repositories) ." **Note:** Workflows triggered by Dependabot pull requests are treated as though they are from a forked repository, and are al...
github_using_workflows_jobs/github_using_workflows_5_2.txt
* [ 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) * [ OpenID Connect in Google Cloud Plat...
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_85_0.txt
* Featured on Meta * Testing a new version of Stack Overflow Jobs * Policy: Generative AI (e.g., ChatGPT) is banned
github_using_workflows_jobs/github_using_workflows_1_13.txt
_ENV ` cannot be used to set the ` NODE_OPTIONS ` environment variable. ### Example of writing an environment variable to ` GITHUB_ENV ` YAML steps: - name: Set the value id: step_one run: | echo "action_state=yellow" >> "$GITHUB_ENV" - name: Use the value ...
github_using_workflows_jobs/251790_13_0.txt
* Enterprise * Teams * Startups * Education By Solution
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_60_0.txt
Follow answered Nov 16, 2022 at 22:46
github_using_workflows_jobs/github_using_workflows_6_1.txt
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-runs) ...
github_using_workflows_jobs/github_using_workflows_10_6.txt
means that you can update a secret or variable in one location, and have the change apply to all repository workflows that use it. When creating a secret or variable in an organization, you can use a policy to limit which repositories can access it. For example, you can grant access to all repositories, or limit acce...
github_using_workflows_jobs/github_using_workflows_3_10.txt
- run: ./setup_server.sh build: needs: setup runs-on: ubuntu-latest steps: - run: ./build_server.sh test: needs: build runs-on: ubuntu-latest steps: - run: ./test_server.sh For more information, see " [ Using jobs in a workflow ](...
github_using_workflows_jobs/manually-running-a-workflow7_29_0.txt
* Build & test Go * Build & test Java & Ant
github_using_workflows_jobs/manually-running-a-workflow7_15_0.txt
* Cache dependencies * Store artifacts
github_using_workflows_jobs/251790_90_0.txt
Comment options *
github_using_workflows_jobs/github_using_workflows_6_23.txt
of time. ┌───────────── minute (0 - 59) │ ┌───────────── hour (0 - 23) │ │ ┌───────────── day of the month (1 - 31) │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ * * * * * You c...
github_using_workflows_jobs/251790_38_0.txt
Mar 24, 2020 \-
github_using_workflows_jobs/manually-running-a-workflow7_62_0.txt
* Extending GitHub Actions Importer * Supplemental arguments and settings
github_using_workflows_jobs/github_using_workflows_12_8.txt
) on: pull_request: # Sequence of patterns matched against refs/heads branches: - main - 'mona/octocat' - 'releases/**' If a workflow is skipped due to branch filtering, [ path filtering ](/en/actions/using-workflows/workflow-syntax-for-github- a...
github_using_workflows_jobs/github_using_workflows_3_5.txt
/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-actions) * [ Creat...
github_using_workflows_jobs/github_using_jobs_5_5.txt
curity-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 con...
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_1_0.txt
1. About 2. Products 3. For Teams 1. Stack Overflow Public questions & answers 2. Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers 3. Talent Build your employer brand 4. Advertising Reach developers & technologists worldwide 5. Labs The future...
github_using_workflows_jobs/github_using_workflows_3_8.txt
de. - uses: actions/setup-node@v4 with: node-version: '20' This step uses the ` actions/setup-node@v4 ` action to install the specified version of the Node.js. (This example uses version 14.) This puts both the ` node ` and ` npm ` commands in your ` PATH ` . ...
github_using_workflows_jobs/github_using_workflows_12_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") / * [ Trigger a workflow ](/en/actions/using-workflows/triggering-a-workflow "Trigger a workflow...
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_7_0.txt
1. 1. Home 2. Questions
github_using_workflows_jobs/251790_102_0.txt
3 You must be logged in to vote All reactions
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_5_0.txt
Sign up or log in to customize your list. ### more stack exchange communities
github_using_workflows_jobs/manually-running-a-workflow7_26_0.txt
* Skip workflow runs * Delete a workflow run
github_using_workflows_jobs/github_using_workflows_11_5.txt
[ 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 * [ About custom actions ](/en/actions/creating-actions/about...
github_using_workflows_jobs/251790_33_0.txt
GuillaumeCleme Mar 24, 2020 · 5 comments · 3 replies
github_using_workflows_jobs/251790_28_0.txt
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }}
github_using_workflows_jobs/251790_103_0.txt
0 replies Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment
github_using_workflows_jobs/251790_41_0.txt
@guillaumecleme , I checked your repository and the releases you have created, and I found few questions:
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_10_0.txt
8. Discussions 9. Collectives
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_12_0.txt
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams Create a free Team
github_using_workflows_jobs/github_using_jobs_0_5.txt
s/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 actio...
github_using_workflows_jobs/manually-running-a-workflow7_127_0.txt
## Legal * © 2024 GitHub, Inc. * Terms * Privacy * Status * Pricing * Expert services * Blog
github_using_workflows_jobs/github_using_workflows_5_31.txt
.io ` . jobs: my_first_job: steps: - name: My first step uses: docker://gcr.io/cloud-builders/gradle ### Example: Using an action inside a different private repository than the workflow Your workflow must checkout the private repository and reference the action...
github_using_workflows_jobs/github-series-actions-workflow-dispatch0_12_0.txt
#### Example source code - https://github.com/nikhilakki/nikhilakki.in-blog-code- examples/blob/main/.github/workflows/workflow-dispatch.yml
github_using_workflows_jobs/github_using_jobs_2_5.txt
n-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 * [ About custom actions ](/en/action...
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_38_0.txt
## 36 Answers 36 Sorted by: Reset to default
github_using_workflows_jobs/251790_1_0.txt
Toggle navigation Sign in
github_using_workflows_jobs/manually-running-a-workflow7_98_0.txt
* Create a composite action * Metadata syntax
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_26_0.txt
12.6k 6 6 gold badges 56 56 silver badges 76 76 bronze badges asked Sep 20, 2019 at 18:15
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_56_0.txt
I thought I would add a small ` bash ` snippet that will work on push and pull_request events since I didn't see one here: echo "${GITHUB_REF_NAME}" | grep -P '[0-9]+/merge' &> /dev/null && export ref="${GITHUB_HEAD_REF}" || export ref="${GITHUB_REF_NAME}"
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_108_0.txt
#### Hot Network Questions * Do thoughts work as an info-dump? * Given MAC address, how to tell if interface is wifi * Under what circumstances is it appropriate to have video cameras as part of exam proctoring? * Restricted – a cryptic crossword * Reproducing Roman Verostko's FF 2004 Drawing * Refus...
github_using_workflows_jobs/github_using_jobs_6_8.txt
p? [ Ask the GitHub community ](https://github.com/orgs/community/discussions) [ Contact support ](https://support.github.com) ## Legal * © 2024 GitHub, Inc. * [ Terms ](/en/site-policy/github-terms/github-terms-of-service) * [ Privacy ](/en/site-policy/privacy-policies/github-privacy-statement) * [ Sta...
github_using_workflows_jobs/manually-running-a-workflow7_28_0.txt
* Build and test * Continuous integration
github_using_workflows_jobs/github_using_jobs_6_4.txt
rs ](/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 networking ](/en/actions/usin...
github_using_workflows_jobs/github-series-actions-workflow-dispatch0_2_0.txt
Follow # GitHub Series | Actions - Workflow Dispatch
github_using_workflows_jobs/github_using_jobs_8_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 r...
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_90_0.txt
55 How to get pull request number within GitHub Actions workflow
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_47_0.txt
answered Jul 7, 2022 at 16:53 Cloudkollektiv Cloudkollektiv
github_using_workflows_jobs/github_using_workflows_6_9.txt
st commit on default branch | Default branch **Note:** This event will only trigger a workflow run if the workflow file is on the default branch. Runs your workflow when someone forks a repository. For information about the REST API, see " [ REST API endpoints for forks ](/en/rest/repos/forks#create- a-fork) ....
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_32_0.txt
* I opened up a Feature Request with GitHub to add native support for this. Many other CI providers (Travis CI, CircleCI, Semaphore CI) have native support, so there's good precedence for adding something like this. Please upvote the feature request if you'd like to see this behavior added! – blimmer
github_using_workflows_jobs/github_using_jobs_6_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") / * [ Assign permissions to jobs ](/en/actions/using-jobs/assigning-permissions-to-jobs "Assign permissions to ...
github_using_workflows_jobs/manually-running-a-workflow7_123_0.txt
Privacy policy ### Help us make these docs great!
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_43_0.txt
Note: because extracting the environment name is not done in bash or powershell, you are bound to the limited expressions github actions offers. If you need more fancy stuff you could do it differently, there is no single truth. However, I always like to keep things simple and readable. Alternative (quick) option
github_using_workflows_jobs/manually-running-a-workflow7_55_0.txt
* Publish Java packages with Gradle * Publish Java packages with Maven
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_46_0.txt
Follow edited Jul 7, 2022 at 22:09
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_100_0.txt
59 How to get the target branch of the GitHub pull request from an Actions?
github_using_workflows_jobs/manually-running-a-workflow7_14_0.txt
* Workflow commands * Reuse workflows
github_using_workflows_jobs/github_using_jobs_9_4.txt
-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 networking ](/en/actions/using-github-hosted-runners/connecting-to...
github_using_workflows_jobs/251790_86_0.txt
GuillaumeCleme Mar 26, 2020
github_using_workflows_jobs/github_using_workflows_5_8.txt
t-sheet) ." #### Example: Including branches The patterns defined in ` branches ` are evaluated against the Git ref's name. For example, the following workflow would run whenever there is a ` pull_request ` event for a pull request targeting: * A branch named ` main ` ( ` refs/heads/main ` ) * A branch named `...
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_110_0.txt
# Subscribe to RSS Question feed
github_using_workflows_jobs/github-series-actions-workflow-dispatch0_17_0.txt
Share this
github_using_workflows_jobs/github_using_workflows_1_8.txt
Write-Output "Inside group" Write-Output "::endgroup::" ![Screenshot of the log for the workflow step. The second line, "My title", is prefaced by a downward arrow, indicating an expanded group. The next line, "Inside group", is indented below.](/assets/cb-4487/images/help/actions/actions-log...
github_using_workflows_jobs/manually-running-a-workflow7_46_0.txt
* OpenID Connect in PyPI * OpenID Connect with reusable workflows
github_using_workflows_jobs/manually-running-a-workflow7_27_0.txt
* Download workflow artifacts * Remove workflow artifacts
github_using_workflows_jobs/github_using_workflows_6_13.txt
ing-project- boards/about-project-boards) ." For information about the project card APIs, see " [ Objects ](/en/graphql/reference/objects#projectcard) " in the GraphQL API documentation or " [ REST API endpoints for Project (classic) cards ](/en/rest/projects/cards) ." For example, you can run a workflow when a projec...
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_69_0.txt
Share Improve this answer
github_using_workflows_jobs/github_using_workflows_5_41.txt
onment variables in the called workflow. Instead, you can reference the inputs by using the ` inputs ` context. ### Example of ` jobs.<job_id>.with ` jobs: call-workflow: uses: octo-org/example-repo/.github/workflows/called-workflow.yml@main with: username: mona ##...
github_using_workflows_jobs/manually-running-a-workflow7_48_0.txt
* Protect deployments * Create custom protection rules
github_using_workflows_jobs/251790_17_0.txt
* The ReadME Project GitHub community articles
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_112_0.txt
##### Stack Overflow * Questions * Help
github_using_workflows_jobs/251790_47_0.txt
* # {{title}}
github_using_workflows_jobs/github_using_workflows_6_15.txt
hange to a JavaScript ( ` .js ` ) file is opened on a branch whose name starts with ` releases/ ` : on: pull_request: types: - opened branches: - 'releases/**' paths: - '**.js' To run a job based on the pull request's head branch name (as ...
github_using_workflows_jobs/github_using_jobs_9_7.txt
dded to each of the matrix combinations if none of the key:value pairs overwrite any of the original matrix values. If the object cannot be added to any of the matrix combinations, a new matrix combination will be created instead. Note that the original matrix values will not be overwritten, but added matrix values can...
github_using_workflows_jobs/github_using_workflows_3_11.txt
n idle self-hosted runner with the specified labels. If none are available and a GitHub-hosted runner with the specified labels exists, the job will go to a GitHub-hosted runner. To learn more about self-hosted runner labels, see " [ Using labels with self- hosted runners ](/en/actions/hosting-your-own-runners/managin...
github_using_workflows_jobs/github_using_workflows_9_4.txt
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 networking ](/en/...
github_using_workflows_jobs/github_using_jobs_9_2.txt
ons/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/actions/deployment/security-...
github_using_workflows_jobs/github-series-actions-workflow-dispatch0_13_0.txt
#### Screenshots - ### References -
github_using_workflows_jobs/github_using_workflows_5_33.txt
d executed in a script, which is also the default behavior for actions. The runner will report the status of the step as fail/succeed based on this exit code. * ` powershell ` / ` pwsh ` * Fail-fast behavior when possible. For ` pwsh ` and ` powershell ` built-in shell, we will prepend ` $ErrorActionPreference ...
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_109_0.txt
more hot questions Question feed
github_using_workflows_jobs/251790_45_0.txt
View full answer ## Replies: 5 comments · 3 replies
github_using_workflows_jobs/github_using_jobs_7_2.txt
* [ 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) * [ OpenID Connect in Google Cloud Pla...
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_68_0.txt
Late answer but an alternate approach would be to use tj-actions/branch-names . - name: Get branch name id: branch-name uses: tj-actions/branch-names@v7 - name: Show the current branch name run: | echo "Current branch: ${{ st...
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_16_0.txt
Q&A for work Connect and share knowledge within a single location that is structured and easy to search.
github_using_workflows_jobs/manually-running-a-workflow7_101_0.txt
* Share with your organization * Release and maintain actions
github_using_workflows_jobs/github_using_workflows_5_24.txt
group: ubuntu-runners steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: '14' - run: npm install -g bats - run: bats -v #### Example: Combining groups and labels When you combine groups and labels, ...
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_53_0.txt
Jane Jane 428 3 3 silver badges 10 10 bronze badges
github_using_workflows_jobs/how-to-get-the-current-branch-within-github-actions6_19_0.txt
Ask Question Asked 4 years, 7 months ago
github_using_workflows_jobs/251790_91_0.txt
# {{title}} Something went wrong.
github_using_workflows_jobs/github_using_workflows_1_10.txt
RET=$((RANDOM)) echo "::add-mask::$GENERATED_SECRET" SECRET_HANDLE=$(secret-store store-secret "$GENERATED_SECRET") echo "handle=$SECRET_HANDLE" >> "$GITHUB_OUTPUT" secret-consumer: runs-on: macos-latest needs: secret-generator steps: - uses: som...
github_using_workflows_jobs/github_using_jobs_1_2.txt
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/a...
github_using_workflows_jobs/github_using_workflows_12_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 run ](...
github_using_workflows_jobs/github_using_workflows_4_1.txt
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-runs) ...
github_using_workflows_jobs/251790_24_0.txt
# Saved searches ## Use saved searches to filter your results more quickly