Skip to content

Commit

Permalink
update checkout gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanotorresi committed May 24, 2022
1 parent 55799b2 commit 7a9eba3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/dashboards-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Dashboards CI

# this workflow will
# - check for JSON syntax errors on every pull request
# - commit to the OBS development upstream whenever master the master branch is updated
# - commit to the OBS development upstream whenever the main branch is updated

on:
push:
Expand All @@ -22,15 +22,15 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v1
- run: npm -g install jsonlint
- name: validate JSON
run: find dashboards -name "*.json" -type f -exec jsonlint -c {} \;

obs-commit:
needs: build
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
container: shap/continuous_deliver
env:
Expand All @@ -41,7 +41,7 @@ jobs:
REPOSITORY: ${{ github.repository }}
GITHUB_OAUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: configure OSC
Expand All @@ -50,4 +50,3 @@ jobs:
mkdir -p $HOME/.config/osc
cp /root/.config/osc/oscrc $HOME/.config/osc
- run: make dashboards-obs-commit

6 changes: 3 additions & 3 deletions .github/workflows/exporter-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Exporter CI

# this workflow will
# - check build and test the go codebase on every pull request
# - commit to the OBS development upstream whenever master the master branch is updated
# - commit to the OBS development upstream whenever the main branch is updated
# - perform an OBS Submit Request to downstream whenever a GitHub release is published
# - attach build artifacts to GitHub releases

Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
REPOSITORY: ${{ github.repository }}
GITHUB_OAUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: configure OSC
Expand All @@ -86,7 +86,7 @@ jobs:
REPOSITORY: ${{ github.repository }}
GITHUB_OAUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: configure OSC
Expand Down

0 comments on commit 7a9eba3

Please sign in to comment.