Skip to content

Commit d2bfed8

Browse files
committed
DNM: test
1 parent b670bef commit d2bfed8

1 file changed

Lines changed: 19 additions & 32 deletions

File tree

Lines changed: 19 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,26 @@
11
---
2-
name: Synchronise Source Repositories
3-
"on":
2+
name: Validate source repositories
3+
4+
on:
45
push:
5-
branches: [main]
6-
paths:
7-
- ".github/workflows/source-repo-sync.yml"
8-
- "ansible/inventory/group_vars/all/source-repositories"
9-
- "ansible/roles/source-repo-sync/**"
10-
- "ansible/source-repo-sync.yml"
11-
workflow_dispatch:
12-
permissions:
13-
contents: write
14-
pull-requests: write
6+
branches:
7+
- main
8+
pull_request:
159
jobs:
16-
source-repo-sync:
10+
validate-source-repos:
11+
name: Validate source repositories
12+
1713
runs-on: ubuntu-latest
18-
name: Synchronise source repositories
14+
1915
steps:
20-
- name: Configure git 🔧
21-
run: |
22-
git config --global user.email "22933334+stackhpc-ci@users.noreply.github.com" &&
23-
git config --global user.name "stackhpc-ci"
24-
- name: GitHub checkout 🛎
25-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
26-
with:
27-
persist-credentials: "false"
28-
- name: Run ansible playbook 📖
29-
run: ansible-playbook ansible/source-repo-sync.yml -i ansible/inventory
30-
env:
31-
ANSIBLE_FORCE_COLOR: true
32-
GITHUB_TOKEN: ${{secrets.repository_configuration_token}}
16+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3317

34-
- name: Send message to Slack via Workflow Builder
35-
uses: ./.github/actions/slack-alert
18+
# Python version must be pinned because of issue with Ubuntu permissions
19+
# See https://github.com/actions/runner-images/issues/11499
20+
- name: Set up Python
21+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3622
with:
37-
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
38-
slack-channel-id: ${{ vars.SLACK_CHANNEL_ID }}
39-
if: failure() && github.event_name == 'push'
23+
python-version: '3.12'
24+
25+
- name: Validate source repositories
26+
script: scripts/validate-source-repos.py

0 commit comments

Comments
 (0)