Skip to content

Commit

Permalink
Run workflow on different branches than default
Browse files Browse the repository at this point in the history
  • Loading branch information
Davknapp committed Sep 26, 2024
1 parent 9542fea commit 0a65275
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build_cmake_tarball.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_branch }}
fetch-tags: true # required to get version tags
fetch-depth: 0 # required to get all history, especially the version tags
- run: git branch
- run: env
- name: install sudo
run: apt update && apt install sudo
# On the github Ubuntu 20.04, sudo is not available by default
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/create_from_cmake_tarball.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ jobs:
container: dlramr/t8code-ubuntu:t8-dependencies
timeout-minutes: 90
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.workflow_run.head_branch }}
- run: git branch
- run: env
- name: triggering workflow
run: echo ${{github.event.workflow_run.name}} && echo ${{github.even.workflow_run.id}}
- name: install sudo
Expand Down

0 comments on commit 0a65275

Please sign in to comment.