Skip to content

Commit

Permalink
Update checkout action to v4
Browse files Browse the repository at this point in the history
Some YAML formatting
  • Loading branch information
williamfgc committed Sep 5, 2023
1 parent a69ec7a commit 894e54a
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 39 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/ci-github-action-auto-rebase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,47 @@ on:
- develop
- main
push:
branches:
branches:
- develop
- main

jobs:
rebase:
if: |
contains(github.event.pull_request.body, '!-> Feel free to automatically rebase this PR. <-!')
&& github.event.pull_request.auto_merge
runs-on: ubuntu-latest
steps:
- name: Echo Github Context To Debug
run: echo "$GITHUB_CONTEXT"
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
- name: Checkout Action
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
- name: Automatic Rebase
run: tests/test_automation/github-actions/ci/run_step.sh rebase
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
QMCPACK_BOT_GPG_KEY: ${{ secrets.QMCPACK_BOT_GPG_KEY }}
QMCPACK_BOT_GPG_SIGNING_KEY: ${{ secrets.QMCPACK_BOT_GPG_SIGNING_KEY }}
- name: Echo Github Context To Debug
run: echo "$GITHUB_CONTEXT"
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
- name: Checkout Action
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
- name: Automatic Rebase
run: tests/test_automation/github-actions/ci/run_step.sh rebase
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
QMCPACK_BOT_GPG_KEY: ${{ secrets.QMCPACK_BOT_GPG_KEY }}
QMCPACK_BOT_GPG_SIGNING_KEY: ${{ secrets.QMCPACK_BOT_GPG_SIGNING_KEY }}

trigger-rebase:
if: github.event_name == 'push'

runs-on: ubuntu-latest
steps:
- name: Checkout Action
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
- name: Push Update To Opt'd in PR's
run: tests/test_automation/github-actions/ci/run_step.sh pull-rebase
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
QMCPACK_BOT_GPG_KEY: ${{ secrets.QMCPACK_BOT_GPG_KEY }}
QMCPACK_BOT_GPG_SIGNING_KEY: ${{ secrets.QMCPACK_BOT_GPG_SIGNING_KEY }}
- name: Checkout Action
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
- name: Push Update To Opt'd in PR's
run: tests/test_automation/github-actions/ci/run_step.sh pull-rebase
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
QMCPACK_BOT_GPG_KEY: ${{ secrets.QMCPACK_BOT_GPG_KEY }}
QMCPACK_BOT_GPG_SIGNING_KEY: ${{ secrets.QMCPACK_BOT_GPG_SIGNING_KEY }}
6 changes: 3 additions & 3 deletions .github/workflows/ci-github-actions-self-hosted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Checkout PR branch
if: steps.check.outputs.triggered == 'true'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{secrets.GITHUB_TOKEN}}
repository: ${{fromJson(steps.request.outputs.data).head.repo.full_name}}
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:
- name: Checkout PR branch
if: steps.check.outputs.triggered == 'true'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{secrets.GITHUB_TOKEN}}
repository: ${{fromJson(steps.request.outputs.data).head.repo.full_name}}
Expand Down Expand Up @@ -266,7 +266,7 @@ jobs:
- name: Checkout PR branch
if: steps.check.outputs.triggered == 'true'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{secrets.GITHUB_TOKEN}}
repository: ${{fromJson(steps.request.outputs.data).head.repo.full_name}}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-github-actions-static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

steps:
- name: Checkout Action
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Configure
run: tests/test_automation/github-actions/ci/run_step_static.sh configure
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci-github-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:

steps:
- name: Checkout Action
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Configure
run: tests/test_automation/github-actions/ci/run_step.sh configure
Expand Down Expand Up @@ -147,12 +147,12 @@ jobs:

steps:
- name: Checkout Action
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set Python Version
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.10"

- name: Setup Dependencies
run: |
Expand Down Expand Up @@ -205,11 +205,11 @@ jobs:
container:
image: ghcr.io/qmcpack/centos-stream-gcc11:latest
options: -u 1001

steps:
- name: Checkout Action
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Echo Debug
run: |
echo $PATH
Expand Down

0 comments on commit 894e54a

Please sign in to comment.