Skip to content

CI: Stub Update with PAT #263

CI: Stub Update with PAT

CI: Stub Update with PAT #263

Workflow file for this run

name: 👑 CI
on: [push, pull_request]
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-ci
cancel-in-progress: true
jobs:
stubs:
# Pushes should only run on mainline branch "development"
if: github.event_name == 'push' && github.repository == 'AMReX-Codes/pyamrex' && github.ref == 'refs/heads/development'
name: 🔄 Update Stub Files
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# changed files back to the repository.
contents: write
uses: ./.github/workflows/stubs.yml
ubuntu:
if: github.event.pull_request.draft == false
name: 🐧 Ubuntu
needs: [stubs]
uses: ./.github/workflows/ubuntu.yml
intel:
if: github.event.pull_request.draft == false
name: 🐧 Intel
needs: [stubs]
uses: ./.github/workflows/intel.yml
hip:
if: github.event.pull_request.draft == false
name: 🐧 HIP
needs: [stubs]
uses: ./.github/workflows/hip.yml
macos:
if: github.event.pull_request.draft == false
name: 🍏 macOS
needs: [stubs]
uses: ./.github/workflows/macos.yml
windows:
if: github.event.pull_request.draft == false
name: 🪟 Windows
needs: [stubs]
uses: ./.github/workflows/windows.yml
save_pr_number:
if: github.event_name != 'push'
runs-on: ubuntu-latest
steps:
- name: Save PR number
env:
PR_NUMBER: ${{ github.event.number }}
run: |
echo $PR_NUMBER > pr_number.txt
- uses: actions/upload-artifact@v3
with:
name: pr_number
path: pr_number.txt
retention-days: 1