Skip to content

Commit 3e12f77

Browse files
Merge pull request #234 from intersystems-community/autobump-version-restricted-branch
Added permission to push commit with updated version to restricted branch
2 parents f71cb09 + 4b673c1 commit 3e12f77

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ jobs:
2121
matrix:
2222
os: [ubuntu-latest, windows-latest, macOS-latest]
2323
steps:
24-
- uses: actions/checkout@master
24+
- uses: actions/checkout@v2
25+
with:
26+
ref: master
2527
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
2628
- name: Set an output
2729
id: set-version
@@ -45,7 +47,7 @@ jobs:
4547
echo $VERSION > ./dist/.version
4648
echo $NAME > ./dist/.name
4749
- name: Use Node.js
48-
uses: actions/setup-node@master
50+
uses: actions/setup-node@v1
4951
with:
5052
node-version: 12.x
5153
- run: npm install
@@ -61,7 +63,7 @@ jobs:
6163
if: runner.os == 'Linux'
6264
run: |
6365
./node_modules/.bin/vsce package -o ./dist/package.vsix
64-
- uses: actions/upload-artifact@master
66+
- uses: actions/upload-artifact@v2
6567
if: runner.os == 'Linux'
6668
with:
6769
name: vsix
@@ -71,7 +73,7 @@ jobs:
7173
runs-on: ubuntu-latest
7274
needs: build
7375
steps:
74-
- uses: actions/download-artifact@master
76+
- uses: actions/download-artifact@v2
7577
with:
7678
name: vsix
7779
path: ./dist/
@@ -84,7 +86,7 @@ jobs:
8486
echo ::set-output name=name::`cat ./dist/.name`
8587
- name: Create Release
8688
id: create_release
87-
uses: actions/create-release@master
89+
uses: actions/create-release@v1
8890
if: runner.os == 'Linux'
8991
env:
9092
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -97,7 +99,7 @@ jobs:
9799
${{ steps.set-version.outputs.changelog }}
98100
- name: Upload Release Asset
99101
id: upload-release-asset
100-
uses: actions/upload-release-asset@master
102+
uses: actions/upload-release-asset@v1
101103
if: runner.os == 'Linux'
102104
env:
103105
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -114,12 +116,13 @@ jobs:
114116
- uses: actions/checkout@v2
115117
with:
116118
ref: master
117-
- uses: actions/download-artifact@master
119+
token: ${{ secrets.TOKEN }}
120+
- uses: actions/download-artifact@v2
118121
with:
119122
name: vsix
120123
path: ./dist/
121124
- name: Use Node.js
122-
uses: actions/setup-node@master
125+
uses: actions/setup-node@v1
123126
with:
124127
node-version: 12.x
125128
- name: Prepare build
@@ -141,7 +144,7 @@ jobs:
141144
git push
142145
- name: Upload Release Asset
143146
id: upload-release-asset
144-
uses: actions/upload-release-asset@master
147+
uses: actions/upload-release-asset@v1
145148
if: runner.os == 'Linux'
146149
env:
147150
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)