WebJun 12, 2024 · So inside the workflow I'm doing this: - name: Checkout small private repo uses: actions/checkout@v2 with: repository: name/smallprivaterepo path: build/. I tried using $ { { secrets.REPO_ACCESS_TOKEN }} and env: GITHUB_TOKEN without success. Determining the default branch Retrieving the default branch name Not Found Waiting … WebSep 4, 2024 · You will need to do a bit of string manipulation to get this going. Basically during a tag creation push, is like if you were to do git checkout v in your local but there's no reference to the original branch. This is why you will need to use the -r flag in the git branch contains command.. We get the clean branch with the following two …
Get branch name · Actions · GitHub Marketplace · GitHub
WebFeb 24, 2024 · 1 Answer. try with github.ref. From the doc: github.ref The fully-formed ref of the branch or tag that triggered the workflow run. For workflows triggered by push, this is the branch or tag ref that was pushed. For workflows triggered by pull_request, this is the pull request merge branch. For workflows triggered by release, this is the release ... WebJun 11, 2024 · Property name Type Description; github.base_ref: string: The base_ref or target branch of the pull request in a workflow run. This property is only available when the event that triggers a workflow run is a pull_request.: github.head_ref touchstay ownerrez
Branch Names · Actions · GitHub Marketplace · GitHub
WebAug 11, 2024 · You can run your workflow through the GitHub CLI, but you will first need to make sure it's run before.. gh workflow list If your workflow isn't in that list (by name), then add pull_request: and create a pull request so that the workflow is registered, once.. name: 'My Workflow' on: workflow_dispatch: inputs: parameter: description: My Parameter … WebMar 11, 2024 · #This is a basic workflow to help you get started with Actions name: prod-sample # Controls when the action will run. on: # Triggers the workflow on push or pull request events but only for the main branch create: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single … WebFeatures. Retrieve the current branch name without any prefix. (e.g. 'refs/heads/main' -> 'main') Retrieve the current tag with an option to strip the prefix (e.g. v0.0.1 -> v -> 0.0.1) Detect actions triggered by non default branches. Detect actions triggered by the default branch. Supports all valid git branch names. potters funeral home willimantic