WebSep 17, 2024 · Upon creating a release in GitHub I trigger a GitHub action. In this action, I would like to get some data from the release, is this possible? For example, I would like to get the tag and then use this tag as the NuGet package version. ... To trigger the action: git push origin v1.0.0 Share. Follow edited Sep 17, 2024 at 8:12. answered Sep 17 ... Web4. For steps or jobs you can also use github.ref_name which is the branch or tag name that triggered the workflow run. name: my workflow on: push jobs: if: github.ref_name == 'main' test: runs-on: ubuntu-latest steps: - name: Execute tests run: exit 0. For more information about the github context check here.
Trigger GitHub Action when push from specific branch
WebMar 15, 2024 · If this is omitted the git ref will be used (if it is a tag). Your issue is probably related to the push trigger you set in your workflow file, as it will not generate any git ref tag. And as you're not using the action tag input, the action can't identify the tag to use to generate the release. You have 2 options here: Remove the on push trigger. Runs your workflow when branch protection rules in the workflow repository are changed. For more information about branch protection rules, see "About protected branches." For information about the branch protection rule APIs, see "Objects" in the GraphQL API documentation or "Branches" in the REST API … See more Runs your workflow when activity related to a check run occurs. A check run is an individual test that is part of a check suite. For information, see … See more Runs your workflow when check suite activity occurs. A check suite is a collection of the check runs created for a specific commit. Check suites summarize the status and conclusion of the check runs that are in the … See more Runs your workflow when someone deletes a Git reference (Git branch or tag) in the workflow's repository. For information about the … See more Runs your workflow when someone creates a Git reference (Git branch or tag) in the workflow's repository. For information about the APIs to create a Git reference, see … See more kosherica vacations
"Trigger an Azure Pipelines run from GitHub Actions - Azure …
WebOct 12, 2024 · 1 release workflow -> this workflow should trigger on a release that is created, download the zip files from the release and deploy them to my environments. … WebOct 25, 2024 · Open your GitHub repository and go to Settings. Select Security > Secrets and variables > Actions. Paste in your PAT and give it the name … WebMar 16, 2024 · Trigger Github Actions only when PR is merged. name: Test deployment on: pull_request: branches: - master jobs: deploy: runs-on: ubuntu-18.04 steps: - name: Random name run: date. When I raise a PR from a branch to master branch, Github Action gets triggered. So, I updated my YAML to: kosher ice cream bars