Skip to content

Commit 7a9eba3

Browse files
author
Stefano Torresi
committed
update checkout gh action
1 parent 55799b2 commit 7a9eba3

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/dashboards-ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Dashboards CI
22

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

77
on:
88
push:
@@ -22,15 +22,15 @@ jobs:
2222
build:
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
2626
- uses: actions/setup-node@v1
2727
- run: npm -g install jsonlint
2828
- name: validate JSON
2929
run: find dashboards -name "*.json" -type f -exec jsonlint -c {} \;
3030

3131
obs-commit:
3232
needs: build
33-
if: github.ref == 'refs/heads/master'
33+
if: github.ref == 'refs/heads/main'
3434
runs-on: ubuntu-latest
3535
container: shap/continuous_deliver
3636
env:
@@ -41,7 +41,7 @@ jobs:
4141
REPOSITORY: ${{ github.repository }}
4242
GITHUB_OAUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4343
steps:
44-
- uses: actions/checkout@v2
44+
- uses: actions/checkout@v3
4545
with:
4646
fetch-depth: 0
4747
- name: configure OSC
@@ -50,4 +50,3 @@ jobs:
5050
mkdir -p $HOME/.config/osc
5151
cp /root/.config/osc/oscrc $HOME/.config/osc
5252
- run: make dashboards-obs-commit
53-

.github/workflows/exporter-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Exporter CI
22

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

@@ -61,7 +61,7 @@ jobs:
6161
REPOSITORY: ${{ github.repository }}
6262
GITHUB_OAUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6363
steps:
64-
- uses: actions/checkout@v2
64+
- uses: actions/checkout@v3
6565
with:
6666
fetch-depth: 0
6767
- name: configure OSC
@@ -86,7 +86,7 @@ jobs:
8686
REPOSITORY: ${{ github.repository }}
8787
GITHUB_OAUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8888
steps:
89-
- uses: actions/checkout@v2
89+
- uses: actions/checkout@v3
9090
with:
9191
fetch-depth: 0
9292
- name: configure OSC

0 commit comments

Comments
 (0)