Skip to content

Commit

Permalink
Merge pull request #8 from zofrex/update-dependencies
Browse files Browse the repository at this point in the history
Update node, Ruby, npm dependencies, and update deprecated Github Actions commands
  • Loading branch information
zofrex authored May 30, 2023
2 parents 2eee461 + 0327640 commit 2b0e3d7
Show file tree
Hide file tree
Showing 698 changed files with 10,722 additions and 196,301 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ jobs:
token: ${{ secrets.ACCESS_TOKEN }}

- name: Set up Ruby environment
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
ruby-version: '3.2'

- name: Update testing repo to use this version of this action
run: ./update.rb $GITHUB_SHA

- name: Write commit message
id: write-commit-message
run: echo "::set-output name=message::Test commit $GITHUB_SHA"
run: echo "message=Test commit $GITHUB_SHA" >> $GITHUB_OUTPUT

- name: Commit and push change to testing repo
uses: stefanzweifel/git-auto-commit-action@v4
Expand All @@ -36,7 +36,7 @@ jobs:

- name: Get commit hash for the above commit
id: get-commit
run: echo "::set-output name=created-commit::$(git rev-parse testing)"
run: echo "created-commit=$(git rev-parse testing)" >> $GITHUB_OUTPUT

- name: Wait for mirror job to run
run: sleep 30
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ inputs:
required: false
default: 'true'
runs:
using: 'node12'
using: 'node16'
main: 'index.js'
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const sha = context.sha;
const branch = core.getInput('target-branch', {required: true});
const force = (core.getInput('force') || 'false').toUpperCase() === 'TRUE'

octokit.git.updateRef({owner, repo, ref: `heads/${branch}`, sha, force}).
octokit.rest.git.updateRef({owner, repo, ref: `heads/${branch}`, sha, force}).
catch(error => {
core.setFailed(`Failed to update ref: ${error}`);
});
1 change: 0 additions & 1 deletion node_modules/.bin/semver

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/which

This file was deleted.

Loading

0 comments on commit 2b0e3d7

Please sign in to comment.