Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/dispatch_software_layer_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This action is triggered whenever software-layer-scripts/main gets a new commit and
# asks EESSI/software-layer to re-evaluate bot/software_layer_scripts_commit.
#
# One-time setup:
# 1. Create a fine-grained PAT (https://github.com/settings/personal-access-tokens):
# - Repository access: Only select repositories -> EESSI/software-layer
# - Repository permissions -> Actions: Read and write (NOT contents!)
# This token can only start/stop/inspect CI runs, enable/disable CI and remove CI aftefacts
# in software-layer. That means the security impact is non-zero, but limited.
# It cannot push code, modify files, or open pull requests.
# 2. Add it as a repository secret named SOFTWARE_LAYER_ACTIONS_TOKEN in
# EESSI/software-layer-scripts.
#
# The triggered workflow (update_software_layer_scripts_commit.yml) in EESSI/software-layer
# does the actual branch push + PR using its own ephemeral GITHUB_TOKEN.
name: Notify software-layer of new scripts commit
on:
push:
branches: [main]
permissions:
contents: read
jobs:
dispatch:
runs-on: ubuntu-24.04
steps:
- name: Trigger update workflow in EESSI/software-layer
env:
GH_TOKEN: ${{ secrets.SOFTWARE_LAYER_ACTIONS_TOKEN }}
run: |
gh api -X POST \
repos/EESSI/software-layer/actions/workflows/update_software_layer_scripts_commit.yml/dispatches \
-f ref=main
Loading