Use github token #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Trigger overcloud host image build | |
on: | |
push: | |
branches: | |
- automatically-build-overcloud-host-images | |
# - stackhpc/2025.1 | |
jobs: | |
check-changes: | |
runs-on: ubuntu-24.04 | |
name: Check changed files | |
if: github.repository == 'stackhpc/stackhpc-kayobe-config' | |
outputs: | |
pulp-repo-versions: ${{ steps.changes.outputs.pulp-repo-versions }} | |
steps: | |
- name: GitHub Checkout | |
uses: actions/checkout@v4 | |
- name: Check changed files | |
uses: dorny/paths-filter@v3 | |
id: changes | |
with: | |
filters: .github/overcloud-host-image-build-path-filters.yml | |
trigger-overcloud-host-image-build: | |
runs-on: ubuntu-24.04 | |
name: Trigger overcloud host image build | |
needs: | |
- check-changes | |
if: ${{ needs.check-changes.outputs.pulp-repo-versions == 'true' }} | |
steps: | |
- name: Trigger overcloud host image build | |
run: | | |
gh workflow run \ | |
overcloud-host-image-build.yml \ | |
--repo stackhpc/stackhpc-kayobe-config \ | |
--ref $BRANCH_NAME | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
- name: Display link to overcloud host image build workflows | |
run: | | |
echo "::notice Overcloud host image build workflows: https://github.com/stackhpc/stackhpc-kayobe-config/actions/workflows/overcloud-host-image-build.yml" |