Skip to content

Added permission to push commit with updated version to restricted branch #234

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
with:
ref: master
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Set an output
id: set-version
Expand All @@ -45,7 +47,7 @@ jobs:
echo $VERSION > ./dist/.version
echo $NAME > ./dist/.name
- name: Use Node.js
uses: actions/setup-node@master
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm install
Expand All @@ -61,7 +63,7 @@ jobs:
if: runner.os == 'Linux'
run: |
./node_modules/.bin/vsce package -o ./dist/package.vsix
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v2
if: runner.os == 'Linux'
with:
name: vsix
Expand All @@ -71,7 +73,7 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@master
- uses: actions/download-artifact@v2
with:
name: vsix
path: ./dist/
Expand All @@ -84,7 +86,7 @@ jobs:
echo ::set-output name=name::`cat ./dist/.name`
- name: Create Release
id: create_release
uses: actions/create-release@master
uses: actions/create-release@v1
if: runner.os == 'Linux'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -97,7 +99,7 @@ jobs:
${{ steps.set-version.outputs.changelog }}
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@master
uses: actions/upload-release-asset@v1
if: runner.os == 'Linux'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -114,12 +116,13 @@ jobs:
- uses: actions/checkout@v2
with:
ref: master
- uses: actions/download-artifact@master
token: ${{ secrets.TOKEN }}
- uses: actions/download-artifact@v2
with:
name: vsix
path: ./dist/
- name: Use Node.js
uses: actions/setup-node@master
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Prepare build
Expand All @@ -141,7 +144,7 @@ jobs:
git push
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@master
uses: actions/upload-release-asset@v1
if: runner.os == 'Linux'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down